Implement clients going automatically into floating
This commit is contained in:
@ -109,9 +109,9 @@ void decorate_window(xcb_connection_t *conn, Client *client, xcb_drawable_t draw
|
||||
return;
|
||||
|
||||
LOG("redecorating child %08x\n", client->child);
|
||||
if (client->floating || client->container->currently_focused == client) {
|
||||
if (client->floating >= FLOATING_AUTO_ON || client->container->currently_focused == client) {
|
||||
/* Distinguish if the window is currently focused… */
|
||||
if (client->floating || CUR_CELL->currently_focused == client)
|
||||
if (client->floating >= FLOATING_AUTO_ON || CUR_CELL->currently_focused == client)
|
||||
background_color = get_colorpixel(conn, config.client.focused.background);
|
||||
/* …or if it is the focused window in a not focused container */
|
||||
else background_color = get_colorpixel(conn, config.client.focused_inactive.background);
|
||||
|
Reference in New Issue
Block a user