From c392cdf25744ce34e6641ea3fcdac35aed86d3ee Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 1 Feb 2015 12:35:00 +0000 Subject: [PATCH] Fix issue 461: do not place the panel in dock if panel_dock = 0 in config; slight change in the XWMHints git-svn-id: http://tint2.googlecode.com/svn/trunk@680 121b4492-b84c-0410-8b4c-0d4edfb3f3cc --- src/panel.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/panel.c b/src/panel.c index 5ba4fa0..ac4f983 100644 --- a/src/panel.c +++ b/src/panel.c @@ -508,12 +508,12 @@ void set_panel_properties(Panel *p) } // Dock - long val = panel_dock ? server.atom._NET_WM_WINDOW_TYPE_DOCK : server.atom._NET_WM_WINDOW_TYPE_NORMAL; + long val = panel_dock ? server.atom._NET_WM_WINDOW_TYPE_DOCK : server.atom._NET_WM_WINDOW_TYPE_SPLASH; XChangeProperty (server.dsp, p->main_win, server.atom._NET_WM_WINDOW_TYPE, XA_ATOM, 32, PropModeReplace, (unsigned char *) &val, 1); - // Sticky and below other window val = ALLDESKTOP; XChangeProperty (server.dsp, p->main_win, server.atom._NET_WM_DESKTOP, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &val, 1); + Atom state[4]; state[0] = server.atom._NET_WM_STATE_SKIP_PAGER; state[1] = server.atom._NET_WM_STATE_SKIP_TASKBAR; @@ -524,15 +524,11 @@ void set_panel_properties(Panel *p) // Unfocusable XWMHints wmhints; - if (panel_dock) { - wmhints.icon_window = wmhints.window_group = p->main_win; - wmhints.flags = StateHint | IconWindowHint; - wmhints.initial_state = WithdrawnState; - } - else { - wmhints.flags = InputHint; - wmhints.input = False; - } + wmhints.icon_window = wmhints.window_group = p->main_win; + wmhints.flags = StateHint | IconWindowHint; + wmhints.initial_state = WithdrawnState; + wmhints.flags = InputHint; + wmhints.input = False; XSetWMHints(server.dsp, p->main_win, &wmhints); // Undecorated