From 77a51f0db30e4dd469c04e814b987c67571f355f Mon Sep 17 00:00:00 2001
From: Olivier Fourdan <fourdan.olivier@wanadoo.fr>
Date: Tue, 14 May 2002 19:55:03 +0000
Subject: [PATCH] Revert to decorating net_wm_window_type_menu windows

(Old svn revision: 10310)
---
 src/client.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/client.c b/src/client.c
index ba310d989..7a61139f4 100644
--- a/src/client.c
+++ b/src/client.c
@@ -546,10 +546,14 @@ static void clientWindowType (Client *c)
 	{
             DBG("atom net_wm_window_type_menu detected\n");
             c->type = WINDOW_MENU;
-	    layer = WIN_LAYER_ONTOP;
+	    layer = WIN_LAYER_NORMAL;
+	    /* The policy here is unclear :
+	      http://mail.gnome.org/archives/wm-spec-list/2002-May/msg00001.html
+	      As it seems, GNOME and KDE don't treat menu the same way...
 	    c->win_state |= WIN_STATE_STICKY;
 	    c->has_border = False;
 	    c->sticky = True;
+	     */
 	    c->skip_pager = True;
 	    c->skip_taskbar = True;
 	}
@@ -1207,8 +1211,7 @@ static void _clientConfigure(Client * c, XWindowChanges * wc, int mask)
     wc->y = frameTop(c);
     wc->width = c->width;
     wc->height = c->height;
-    mask = mask & ~CWStackMode;
-    mask = mask & ~CWSibling;
+    mask &= ~(CWStackMode | CWSibling);
     XConfigureWindow(dpy, c->window, mask, wc);
 
     if(mask & (CWWidth | CWHeight))
-- 
GitLab