For some reason all mozilla and open office menus
are Normal type.  This causes problems with all
plugins which use the window type.

This patch is applied to all plugins and seems to
work flawlessly.  I am submitting it for blur because
the first window of all firefox menus are blurred.

I know its a hack, but at least it should be fairly
harmless inside each plugin.  It is always marked
with 'menu fix hack' so it should be fairly easy
to remove when the time comes.

Regards
Mike
>From 7d90d158a8da6404ce41a5f9a5fae57b3fc72eb1 Mon Sep 17 00:00:00 2001
From: [EMAIL PROTECTED] <[EMAIL PROTECTED](none)>
Date: Fri, 12 Jan 2007 01:43:23 +0000
Subject: [PATCH] Menu hack for firefox/thunderbird/OO.o menus

---
 plugins/blur.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/plugins/blur.c b/plugins/blur.c
index cde18fb..0be98e9 100644
--- a/plugins/blur.c
+++ b/plugins/blur.c
@@ -226,7 +226,12 @@ blurPreparePaintScreen (CompScreen *s,
 
        for (w = s->windows; w; w = w->next)
        {
-           if (bs->wMask & w->type)
+           int type = w->type;
+
+           if (w->type == CompWindowTypeNormalMask && 
w->attrib.override_redirect)
+               type = CompWindowTypeUnknownMask;   // menu fix hack
+
+           if (bs->wMask & type)
            {
                BLUR_WINDOW (w);
 
-- 
1.4.4.3

_______________________________________________
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz

Reply via email to