[stage-x11] Fix switching fullscreen mode
authorChris Lord <chris@linux.intel.com>
Tue, 16 Feb 2010 14:50:14 +0000 (14:50 +0000)
committerChris Lord <chris@linux.intel.com>
Tue, 16 Feb 2010 14:55:53 +0000 (14:55 +0000)
commit1117b6a9ac974dd5855c5e76965c15329c608ff4
tree9a7f3b399ef8f2b438738bbe72990814f3485ce7
parentdd36c3ad5c4f3d25d0286cf1c2a9a25abf7d2ea4
[stage-x11] Fix switching fullscreen mode

Setting/unsetting fullscreen on a mapped or unmapped window now works
correctly.

If you unfullscreen a window that was initially full-screened, it will
unset the fullscreen hint and the WM will likely push the size down to
the largest valid size.

If the window was previously un-fullscreened, Clutter will restore the
previous size.

Fullscreening also now works if the WM switches the hint without the
application's knowledge (as happens when you resize a window to the size
of the screen, for example, with stock metacity).
clutter/clutter-stage.c
clutter/x11/clutter-event-x11.c
clutter/x11/clutter-stage-x11.c
clutter/x11/clutter-stage-x11.h