all repos — tint2 @ a11becfb2e88c6a299274c1d25a2ceed5d6c76e9

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Another attempt to fix issue 465: broken WM_HINTS

git-svn-id: http://tint2.googlecode.com/svn/trunk@689 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
commit

a11becfb2e88c6a299274c1d25a2ceed5d6c76e9

parent

f4af2a352a62e75a48e204b461f4e4e1cb4e05f5

1 files changed, 8 insertions(+), 5 deletions(-)

jump to
M src/panel.csrc/panel.c

@@ -524,12 +524,15 @@ XChangeProperty (server.dsp, p->main_win, server.atom._NET_WM_STATE, XA_ATOM, 32, PropModeReplace, (unsigned char *) state, nb_atoms);

XWMHints wmhints; 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.icon_window = wmhints.window_group = p->main_win; + if (panel_dock) { + // Necessary for placing the panel into the dock on Openbox and Fluxbox. + // See https://code.google.com/p/tint2/issues/detail?id=465 + wmhints.icon_window = wmhints.window_group = p->main_win; + wmhints.flags = StateHint | IconWindowHint; + wmhints.initial_state = WithdrawnState; + } // We do not need keyboard input focus. + wmhints.flags |= InputHint; wmhints.input = False; XSetWMHints(server.dsp, p->main_win, &wmhints);