client: fix titlebar stacking
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
aca61daecd
commit
0e31cdfc62
14
client.c
14
client.c
|
@ -236,19 +236,21 @@ client_stack_above(client_t *c, xcb_window_t previous)
|
|||
config_win_vals[0] = previous;
|
||||
config_win_vals[1] = XCB_STACK_MODE_ABOVE;
|
||||
|
||||
xcb_configure_window(globalconf.connection, c->win,
|
||||
XCB_CONFIG_WINDOW_SIBLING | XCB_CONFIG_WINDOW_STACK_MODE,
|
||||
config_win_vals);
|
||||
|
||||
config_win_vals[0] = c->win;
|
||||
|
||||
if(c->titlebar)
|
||||
{
|
||||
xcb_configure_window(globalconf.connection,
|
||||
c->titlebar->sw.window,
|
||||
XCB_CONFIG_WINDOW_SIBLING | XCB_CONFIG_WINDOW_STACK_MODE,
|
||||
config_win_vals);
|
||||
config_win_vals[0] = c->titlebar->sw.window;
|
||||
previous = c->titlebar->sw.window;
|
||||
}
|
||||
|
||||
xcb_configure_window(globalconf.connection, c->win,
|
||||
XCB_CONFIG_WINDOW_SIBLING | XCB_CONFIG_WINDOW_STACK_MODE,
|
||||
config_win_vals);
|
||||
|
||||
else
|
||||
previous = c->win;
|
||||
|
||||
/* stack transient window on top of their parents */
|
||||
|
|
Loading…
Reference in New Issue