summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-10-19 21:40:52 +0200
committerDanny Baumann <dannybaumann@web.de>2007-10-19 21:40:52 +0200
commitca1f5a4d00fcc46868fb6b3f94e067f54a9972b9 (patch)
tree85bbff8e9c83151c9ef36a4d9a10f80d099f186f
parent32ef3526930f192bdb45929253ffbbec47a015ab (diff)
downloadworkarounds-ca1f5a4d00fcc46868fb6b3f94e067f54a9972b9.tar.gz
workarounds-ca1f5a4d00fcc46868fb6b3f94e067f54a9972b9.tar.bz2
Use real window type for comparison rather than the one set before.
-rw-r--r--workarounds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/workarounds.c b/workarounds.c
index c42080d..f2a8661 100644
--- a/workarounds.c
+++ b/workarounds.c
@@ -226,7 +226,7 @@ workaroundsDoFixes (CompWindow *w)
/* FIXME: Is this the best way to detect a notification type window? */
if (workaroundsGetNotificationDaemonFix (d))
{
- if (w->wmType == CompWindowTypeNormalMask &&
+ if (newWmType == CompWindowTypeNormalMask &&
w->attrib.override_redirect && w->resName &&
strcmp (w->resName, "notification-daemon") == 0)
{
@@ -237,7 +237,7 @@ workaroundsDoFixes (CompWindow *w)
if (workaroundsGetFirefoxMenuFix (d))
{
- if (w->wmType == CompWindowTypeNormalMask &&
+ if (newWmType == CompWindowTypeNormalMask &&
w->attrib.override_redirect && w->resName)
{
if ((strcasecmp (w->resName, "gecko") == 0) ||
@@ -251,7 +251,7 @@ workaroundsDoFixes (CompWindow *w)
if (workaroundsGetOooMenuFix (d))
{
- if (w->wmType == CompWindowTypeNormalMask &&
+ if (newWmType == CompWindowTypeNormalMask &&
w->attrib.override_redirect && w->resName)
{
if (strcasecmp (w->resName, "VCLSalFrame") == 0)
@@ -306,7 +306,7 @@ workaroundsDoFixes (CompWindow *w)
/* fix Qt transients - FIXME: is there a better way to detect them? */
if (!w->resName && w->attrib.override_redirect &&
(w->attrib.class == InputOutput) &&
- (w->wmType == CompWindowTypeUnknownMask))
+ (newWmType == CompWindowTypeUnknownMask))
{
newWmType = CompWindowTypeDropdownMenuMask;
goto AppliedFix;