summaryrefslogtreecommitdiff
path: root/wm/compiz/patches/patch-ab
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2007-10-12 16:22:24 +0000
committerdrochner <drochner@pkgsrc.org>2007-10-12 16:22:24 +0000
commit2048f1551c934828e1d4655099b476ca5d1837df (patch)
tree117348a0ccb91c3b45e39111d402d20c255530fd /wm/compiz/patches/patch-ab
parent91d5ff9a3802384e3c2585e9bea88858bd450120 (diff)
downloadpkgsrc-2048f1551c934828e1d4655099b476ca5d1837df.tar.gz
make this compile with newer libwnck (compiz-0.6 will fix this in a
cleaner way)
Diffstat (limited to 'wm/compiz/patches/patch-ab')
-rw-r--r--wm/compiz/patches/patch-ab22
1 files changed, 22 insertions, 0 deletions
diff --git a/wm/compiz/patches/patch-ab b/wm/compiz/patches/patch-ab
new file mode 100644
index 00000000000..9e2a3eea34b
--- /dev/null
+++ b/wm/compiz/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1 2007/10/12 16:22:24 drochner Exp $
+
+--- gtk/window-decorator/gtk-window-decorator.c.orig 2007-09-29 23:17:39.000000000 +0200
++++ gtk/window-decorator/gtk-window-decorator.c
+@@ -4248,6 +4248,7 @@ action_menu_map (WnckWindow *win,
+ case WNCK_WINDOW_DOCK:
+ /* don't allow window action */
+ return;
++#if 0 /* libwnck>=2.19.3 has no WNCK_WINDOW_MODAL_DIALOG */
+ case WNCK_WINDOW_NORMAL:
+ case WNCK_WINDOW_DIALOG:
+ case WNCK_WINDOW_MODAL_DIALOG:
+@@ -4255,6 +4256,9 @@ action_menu_map (WnckWindow *win,
+ case WNCK_WINDOW_MENU:
+ case WNCK_WINDOW_UTILITY:
+ case WNCK_WINDOW_SPLASHSCREEN:
++#else
++ default:
++#endif
+ /* allow window action menu */
+ break;
+ }