summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-07-31 18:33:21 +0200
committerDanny Baumann <dannybaumann@web.de>2007-07-31 18:33:21 +0200
commit09fcd13a266b783f9f0272403dfcfe8739067cb8 (patch)
treedda25fa3b3afecdf9d77f831dbbad1dda0a23d3a
parent1ea1764bcc333d3577687cd02614820626dafa31 (diff)
downloadworkarounds-09fcd13a266b783f9f0272403dfcfe8739067cb8.tar.gz
workarounds-09fcd13a266b783f9f0272403dfcfe8739067cb8.tar.bz2
Only apply KDE menu fix to override_redirect windows.
Adjust comment.
-rw-r--r--workarounds.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/workarounds.c b/workarounds.c
index 985b2f9..c12f9ab 100644
--- a/workarounds.c
+++ b/workarounds.c
@@ -184,10 +184,13 @@ workaroundsInitWindow (CompPlugin *plugin, CompWindow *w)
free (windowRole);
}
- /* fix Qt transients - FIXME: is there a better way to detect them? */
+ /* fix Qt transients - FIXME: is there a better way to detect them?
+ Especially we have to take care of windows which get a class name
+ later on */
if (!appliedFix)
{
- if (!w->resName && (w->wmType == CompWindowTypeUnknownMask))
+ if (!w->resName && w->attrib.override_redirect &&
+ (w->wmType == CompWindowTypeUnknownMask))
{
w->wmType = CompWindowTypeDropdownMenuMask;
appliedFix = TRUE;