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[0] = previous;
|
||||||
config_win_vals[1] = XCB_STACK_MODE_ABOVE;
|
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)
|
if(c->titlebar)
|
||||||
{
|
{
|
||||||
xcb_configure_window(globalconf.connection,
|
xcb_configure_window(globalconf.connection,
|
||||||
c->titlebar->sw.window,
|
c->titlebar->sw.window,
|
||||||
XCB_CONFIG_WINDOW_SIBLING | XCB_CONFIG_WINDOW_STACK_MODE,
|
XCB_CONFIG_WINDOW_SIBLING | XCB_CONFIG_WINDOW_STACK_MODE,
|
||||||
config_win_vals);
|
config_win_vals);
|
||||||
config_win_vals[0] = c->titlebar->sw.window;
|
previous = c->titlebar->sw.window;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
xcb_configure_window(globalconf.connection, c->win,
|
|
||||||
XCB_CONFIG_WINDOW_SIBLING | XCB_CONFIG_WINDOW_STACK_MODE,
|
|
||||||
config_win_vals);
|
|
||||||
|
|
||||||
previous = c->win;
|
previous = c->win;
|
||||||
|
|
||||||
/* stack transient window on top of their parents */
|
/* stack transient window on top of their parents */
|
||||||
|
|
Loading…
Reference in New Issue