[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Missing a window resize event on X with xmonad
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Missing a window resize event on X with xmonad
- From: Weeble <clockworksaint@xxxxxxxxx>
- Date: Wed, 14 Jan 2009 00:28:44 +0000
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 13 Jan 2009 19:28:48 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=4y0B/BnR5iEd5Q+dK7RA7CtglBXTjalFeiTlJYrVCNo=; b=bNSPPHo40YRmqk6aAeZSi7FVZMI/xp3Be2UzANOcPen3oU70PVTlaLeT1yhnREu/Oq UzVXoxI9GjL6pamxVgLcwOwGXB1ABmh5E9txDhC6ryykhIzi8tnTrmlIqSOpdMMop6Hz 5XwZUHha65Qr7wCoDc1iQVfNbRmRsaxdoZFps=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=NZzyKiyCOJ0/+GCTL9VXCh1fSyH3ncpzdLRRhAhwCNLzB+aVAnvUOU9j/IX6TrxZ1E BQF3T9Z9LbB6q+Uurylg56fykZk+YEowOt/+IffD5grve8CTxiwmPtSjP91/mjQGTl8a sKvmRch+L0U80zXSDkBA3/XOhPY6cbnQjYsPY=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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?