summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Riedi <andrewriedi@gmail.com>2007-08-02 14:29:21 -0700
committerAndrew Riedi <andrewriedi@gmail.com>2007-08-02 14:46:08 -0700
commite3d2033d9c15241f73303b3ec60d6a3cafccd3d5 (patch)
tree461c0efb5389865084d735bd7185a43effd5c727
parent09fcd13a266b783f9f0272403dfcfe8739067cb8 (diff)
downloadworkarounds-e3d2033d9c15241f73303b3ec60d6a3cafccd3d5.tar.gz
workarounds-e3d2033d9c15241f73303b3ec60d6a3cafccd3d5.tar.bz2
Make workaroundsDoFixes() stand alone.
-rw-r--r--workarounds.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/workarounds.c b/workarounds.c
index c12f9ab..11167ea 100644
--- a/workarounds.c
+++ b/workarounds.c
@@ -118,11 +118,13 @@ workaroundsWindowResizeNotify (CompWindow *w, int dx, int dy,
WRAP (ws, w->screen, windowResizeNotify, workaroundsWindowResizeNotify);
}
-static Bool
-workaroundsInitWindow (CompPlugin *plugin, CompWindow *w)
+static void
+workaroundsDoFixes (CompWindow *w)
{
Bool appliedFix = FALSE;
+ w->wmType = getWindowType (w->screen->display, w->id);
+
/* FIXME: Is this the best way to detect a notification type window? */
if (workaroundsGetNotificationDaemonFix (w->screen->display) && w->resName)
{
@@ -202,8 +204,6 @@ workaroundsInitWindow (CompPlugin *plugin, CompWindow *w)
if (workaroundsGetLegacyFullscreen (w->screen->display))
workaroundsDoLegacyFullscreen (w);
-
- return TRUE;
}
static Bool
@@ -267,6 +267,14 @@ workaroundsFiniScreen (CompPlugin *plugin, CompScreen *s)
free (ws);
}
+static Bool
+workaroundsInitWindow (CompPlugin *plugin, CompWindow *w)
+{
+ workaroundsDoFixes (w);
+
+ return TRUE;
+}
+
static void
workaroundsFiniWindow (CompPlugin *plugin, CompWindow *w)
{