From b9508450b7f573e85c3ced43ab63e28c2fb242dc Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 3 May 2015 09:27:52 +0200 Subject: [PATCH] panel: Use WINDOW_TYPE_SPLASH instead of DOCK if panel_layer=normal and panel_dock=0 otherwise it is impossible to get normal stacking --- src/panel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/panel.c b/src/panel.c index 6b2e5e8..cb2210e 100644 --- a/src/panel.c +++ b/src/panel.c @@ -524,7 +524,9 @@ void set_panel_properties(Panel *p) } // Dock - long val = panel_dock ? server.atom._NET_WM_WINDOW_TYPE_DOCK : server.atom._NET_WM_WINDOW_TYPE_SPLASH; + long val = (!panel_dock && panel_layer == NORMAL_LAYER) + ? server.atom._NET_WM_WINDOW_TYPE_SPLASH + : server.atom._NET_WM_WINDOW_TYPE_DOCK; XChangeProperty (server.dsp, p->main_win, server.atom._NET_WM_WINDOW_TYPE, XA_ATOM, 32, PropModeReplace, (unsigned char *) &val, 1); val = ALLDESKTOP;