From f4af2a352a62e75a48e204b461f4e4e1cb4e05f5 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sat, 7 Feb 2015 20:32:44 +0000 Subject: [PATCH] Fix issue 465: broken WM_HINTS git-svn-id: http://tint2.googlecode.com/svn/trunk@688 121b4492-b84c-0410-8b4c-0d4edfb3f3cc --- src/panel.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/panel.c b/src/panel.c index ac4f983..07ea390 100644 --- a/src/panel.c +++ b/src/panel.c @@ -522,12 +522,14 @@ void set_panel_properties(Panel *p) int nb_atoms = panel_layer == NORMAL_LAYER ? 3 : 4; XChangeProperty (server.dsp, p->main_win, server.atom._NET_WM_STATE, XA_ATOM, 32, PropModeReplace, (unsigned char *) state, nb_atoms); - // Unfocusable XWMHints wmhints; - wmhints.icon_window = wmhints.window_group = p->main_win; - wmhints.flags = StateHint | IconWindowHint; + memset(&wmhints, 0, sizeof(wmhints)); + wmhints.flags = StateHint | IconWindowHint | InputHint; + // Necessary for placing the panel into the dock on Openbox and Fluxbox. + // See https://code.google.com/p/tint2/issues/detail?id=465 wmhints.initial_state = WithdrawnState; - wmhints.flags = InputHint; + wmhints.icon_window = wmhints.window_group = p->main_win; + // We do not need keyboard input focus. wmhints.input = False; XSetWMHints(server.dsp, p->main_win, &wmhints);