summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Riedi <andrewriedi@gmail.com>2007-06-14 01:51:34 -0700
committerAndrew Riedi <andrewriedi@gmail.com>2007-06-14 01:51:34 -0700
commitd8f9cc6db3ba7b366725ae2ae976b2797b09bd5f (patch)
tree31e02dce7b7947d72e19c3af76a465392dac6869
parent6cb55bb1e6daaa99743ea260510a1ec8868de289 (diff)
downloadworkarounds-d8f9cc6db3ba7b366725ae2ae976b2797b09bd5f.tar.gz
workarounds-d8f9cc6db3ba7b366725ae2ae976b2797b09bd5f.tar.bz2
Recalculate the window type when needed.
-rw-r--r--workarounds.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/workarounds.c b/workarounds.c
index f5c015c..43ad1cd 100644
--- a/workarounds.c
+++ b/workarounds.c
@@ -81,17 +81,9 @@ static void workaroundsWindowResizeNotify( CompWindow *w, int dx, int dy,
if ( workaroundsGetLegacyApps( w->screen->display ) )
{
- unsigned int type;
-
- type = w->wmType;
-
- /* Fix up the window mask if the size of the window changed. */
- if ((w->width != w->screen->width || w->height != w->screen->height) &&
- (w->type & CompWindowTypeFullscreenMask) &&
- !(type & CompWindowTypeDesktopMask))
- type &= ~CompWindowTypeFullscreenMask;
-
- w->type = type;
+ /* Fix up the window type. */
+ recalcWindowType( w );
+ workaroundsDoLegacyApps( w );
}
UNWRAP( ws, w->screen, windowResizeNotify );