[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Missing a window resize event on X with xmonad
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Missing a window resize event on X with xmonad
- From: "René Dudfield" <renesd@xxxxxxxxx>
- Date: Wed, 14 Jan 2009 11:35:28 +1100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 13 Jan 2009 19:35:30 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=0VXD4YDqb9xazC6MsBZJO7IDWQ6rfiAF/piZJX+6Ro8=; b=tLxYbqu5uEnIOM20W6CVxfcQQPPRo+91s76bdiWmI80idqELY0USO8mVQQycdVBOha u4nW2zzi+FR8bu7HsBtdakRLBZJOe52U6+5jMV7gV/T4K1u5PdyLNL7RBB5SzfkOW3SC gK0pEBBySPjWM0DUptsAC2Hqyo5WFjMx+lkTM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=EGXpli0o2lvV7qkAnkTRWIipOASXZAdTE3gOOU+sGCd6dLW932Fx9mdPWBfdWzRxK0 RRnz49gv1D0lACX39QpBtHA/6fYJBxmIuxdP9H2saOj3x9s7MHxNptFdxFl+20ZTPJvm 2jJPDY3KKTeAkR0C+13vNSroHtHfzMA1lc4pk=
- In-reply-to: <13e3f9930901131628m21a3297cp99262da2e126a496@xxxxxxxxxxxxxx>
- References: <13e3f9930901131628m21a3297cp99262da2e126a496@xxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
hi,
sounds like a bug somewhere (in X, SDL, or your window manager).
Have you tried using: pygame.display.get_surface() ?
On Wed, Jan 14, 2009 at 11:28 AM, Weeble <clockworksaint@xxxxxxxxx> wrote:
> I've been trying out xmonad, a tiling window manager. The principle
> idea behind a tiling window manager is that (at least by default) the
> window manager automatically positions and sizes your windows to fit
> on the screen. I've noticed that in pygame when I call set_mode and
> give the window the resizable flag, the window manager will choose a
> size for the window, but I will get no resize event and set_mode will
> return a surface matching the size of window I asked for. I can't find
> a way to detect in pygame that the window isn't the size I asked for.
> If the window manager subsequently resizes the window I do get a
> resize event normally. It seems as if I should be getting a resize
> event immediately after setting the mode. Other applications seem to
> have no problem being the right size when the window manager sizes
> them. Any ideas?
>