Commit a11becfb authored by o9000's avatar o9000 Committed by mrovi9000@gmail.com

Another attempt to fix issue 465: broken WM_HINTS

git-svn-id: http://tint2.googlecode.com/svn/trunk@689 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
parent f4af2a35
......@@ -524,12 +524,15 @@ void set_panel_properties(Panel *p)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment