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
This commit is contained in:
parent
856385d5c0
commit
c392cdf257
1 changed files with 7 additions and 11 deletions
|
@ -508,12 +508,12 @@ void set_panel_properties(Panel *p)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dock
|
// 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);
|
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;
|
val = ALLDESKTOP;
|
||||||
XChangeProperty (server.dsp, p->main_win, server.atom._NET_WM_DESKTOP, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &val, 1);
|
XChangeProperty (server.dsp, p->main_win, server.atom._NET_WM_DESKTOP, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &val, 1);
|
||||||
|
|
||||||
Atom state[4];
|
Atom state[4];
|
||||||
state[0] = server.atom._NET_WM_STATE_SKIP_PAGER;
|
state[0] = server.atom._NET_WM_STATE_SKIP_PAGER;
|
||||||
state[1] = server.atom._NET_WM_STATE_SKIP_TASKBAR;
|
state[1] = server.atom._NET_WM_STATE_SKIP_TASKBAR;
|
||||||
|
@ -524,15 +524,11 @@ void set_panel_properties(Panel *p)
|
||||||
|
|
||||||
// Unfocusable
|
// Unfocusable
|
||||||
XWMHints wmhints;
|
XWMHints wmhints;
|
||||||
if (panel_dock) {
|
|
||||||
wmhints.icon_window = wmhints.window_group = p->main_win;
|
wmhints.icon_window = wmhints.window_group = p->main_win;
|
||||||
wmhints.flags = StateHint | IconWindowHint;
|
wmhints.flags = StateHint | IconWindowHint;
|
||||||
wmhints.initial_state = WithdrawnState;
|
wmhints.initial_state = WithdrawnState;
|
||||||
}
|
|
||||||
else {
|
|
||||||
wmhints.flags = InputHint;
|
wmhints.flags = InputHint;
|
||||||
wmhints.input = False;
|
wmhints.input = False;
|
||||||
}
|
|
||||||
XSetWMHints(server.dsp, p->main_win, &wmhints);
|
XSetWMHints(server.dsp, p->main_win, &wmhints);
|
||||||
|
|
||||||
// Undecorated
|
// Undecorated
|
||||||
|
|
Loading…
Reference in a new issue