summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-10-16 08:04:00 +0200
committerDanny Baumann <dannybaumann@web.de>2007-10-16 08:04:00 +0200
commit32ef3526930f192bdb45929253ffbbec47a015ab (patch)
tree2a01f9b55df1c05a5e4ade8cbc933b41b875af75
parent41122147aaff98bc25ffd9761de18bb7621b1147 (diff)
downloadworkarounds-32ef3526930f192bdb45929253ffbbec47a015ab.tar.gz
workarounds-32ef3526930f192bdb45929253ffbbec47a015ab.tar.bz2
Added OpenOffice.org menu fix.
-rw-r--r--workarounds.c12
-rw-r--r--workarounds.xml.in5
2 files changed, 17 insertions, 0 deletions
diff --git a/workarounds.c b/workarounds.c
index 5f74306..c42080d 100644
--- a/workarounds.c
+++ b/workarounds.c
@@ -249,6 +249,18 @@ workaroundsDoFixes (CompWindow *w)
}
}
+ if (workaroundsGetOooMenuFix (d))
+ {
+ if (w->wmType == CompWindowTypeNormalMask &&
+ w->attrib.override_redirect && w->resName)
+ {
+ if (strcasecmp (w->resName, "VCLSalFrame") == 0)
+ {
+ newWmType = CompWindowTypeDropdownMenuMask;
+ goto AppliedFix;
+ }
+ }
+ }
/* FIXME: Basic hack to get Java windows working correctly. */
if (workaroundsGetJavaFix (d) && w->resName)
{
diff --git a/workarounds.xml.in b/workarounds.xml.in
index 4266354..c79c557 100644
--- a/workarounds.xml.in
+++ b/workarounds.xml.in
@@ -18,6 +18,11 @@
<_long>Fix window type of Firefox and Thunderbird menus.</_long>
<default>true</default>
</option>
+ <option type="bool" name="ooo_menu_fix">
+ <_short>OpenOffice.org Menu Fix</_short>
+ <_long>Fix window type of OpenOffice.org menus.</_long>
+ <default>true</default>
+ </option>
<option type="bool" name="notification_daemon_fix">
<_short>Notification Daemon Fix</_short>
<_long>Fix window type of notification daemon windows.</_long>