Fix a bug when switching fullscreen mode
commit265060f1f7fe1bc8b2b3cc2ee8ff21dc150da474
authorUli Schlachter <psychon@znc.in>
Fri, 9 Nov 2012 17:50:38 +0000 (9 18:50 +0100)
committerUli Schlachter <psychon@znc.in>
Fri, 9 Nov 2012 17:50:38 +0000 (9 18:50 +0100)
tree0c168fc8655bb74a17689a234ae6a9764c37b6a3
parentc18f5f22f955252e35a56e7805c7d1432e707623
Fix a bug when switching fullscreen mode

The code assumed that a window gets resized when it enters/leaves the fullscreen
mode. This was needed because the code for resizing a window hides and shows the
titlebars.

However, it is possible for a window to enter/leave fullscreen mode without
getting resized, because it already has the correct geometry. In this case,
titlebars were not handled correctly.

This commit fixes that by forcing a resize to the current geometry when the
fullscreen flag is toggled.

Signed-off-by: Uli Schlachter <psychon@znc.in>
objects/client.c