window: Delay scheduled redraws if we start maximize or fullscreen protocol
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 6 Feb 2014 00:53:43 +0000 (16:53 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 6 Feb 2014 01:01:47 +0000 (17:01 -0800)
commit9a7ad67d65c2bc03d6ae322a95d744579c0d0c4d
tree30e9d0fd49b2a938c8c7637c8c18fc9cc7a9456d
parentb405a80c05ba9f355886c18c099543621efc68a8
window: Delay scheduled redraws if we start maximize or fullscreen protocol

When we set the fullscreen flag, we have to wait for the corresponding
configure event and then attach a buffer of that size to indicate
that we've successfully gone fullscreen/maximized.

Without this patch, we can schedule a redraw and go through with it after
setting maximize/fullscreen and end up attaching a buffer of the wrong size.
In practice, what happens is that pressing the maximize button triggers
setting maximized, but also triggers a redraw to paint the maxmize button.
Without this change, repainting the button triggers a repaint that attaches
the same size buffer immediately.

https://bugs.freedesktop.org/show_bug.cgi?id=71927
clients/window.c