[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Missing a window resize event on X with xmonad



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?