Bugfix: Don’t draw decorations of CT_FLOATING_CONs
This commit is contained in:
parent
db3002fce0
commit
97bc8f4b86
8
src/x.c
8
src/x.c
@ -224,11 +224,15 @@ void x_window_kill(xcb_window_t window) {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void x_draw_decoration(Con *con) {
|
void x_draw_decoration(Con *con) {
|
||||||
/* this code needs to run for:
|
/* This code needs to run for:
|
||||||
* • leaf containers
|
* • leaf containers
|
||||||
* • non-leaf containers which are in a stacking container
|
* • non-leaf containers which are in a stacking container
|
||||||
|
*
|
||||||
|
* It does not need to run for:
|
||||||
|
* • floating containers (they don’t have a decoration)
|
||||||
*/
|
*/
|
||||||
if (!con_is_leaf(con) && con->parent->layout != L_STACKED)
|
if ((!con_is_leaf(con) && con->parent->layout != L_STACKED) ||
|
||||||
|
con->type == CT_FLOATING_CON)
|
||||||
return;
|
return;
|
||||||
DLOG("decoration should be rendered for con %p\n", con);
|
DLOG("decoration should be rendered for con %p\n", con);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user