summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-09-17 17:11:27 +0200
committerDanny Baumann <dannybaumann@web.de>2007-09-17 17:11:27 +0200
commit5a19e179decdde4efdba58e1af2d73647f2ea505 (patch)
treef20de17d51238c4f604635d12988e5f8fe289151
parente2df962ef16849c371a281035f443b2e1d09d6ef (diff)
downloadworkarounds-5a19e179decdde4efdba58e1af2d73647f2ea505.tar.gz
workarounds-5a19e179decdde4efdba58e1af2d73647f2ea505.tar.bz2
Firefox 3 has "Popup" as menu class name.
-rw-r--r--workarounds.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/workarounds.c b/workarounds.c
index b27e087..2610620 100644
--- a/workarounds.c
+++ b/workarounds.c
@@ -232,11 +232,14 @@ workaroundsDoFixes (CompWindow *w)
if ((w->wmType == newWmType) && workaroundsGetFirefoxMenuFix (d))
{
if (w->wmType == CompWindowTypeNormalMask &&
- w->attrib.override_redirect && w->resName &&
- (strcasecmp (w->resName, "gecko") == 0))
- {
- newWmType = CompWindowTypeDropdownMenuMask;
- }
+ w->attrib.override_redirect && w->resName)
+ {
+ if ((strcasecmp (w->resName, "gecko") == 0) ||
+ (strcasecmp (w->resName, "popup") == 0))
+ {
+ newWmType = CompWindowTypeDropdownMenuMask;
+ }
+ }
}
/* FIXME: Basic hack to get Java windows working correctly. */