diff --git a/client.c b/client.c index bfff0123..6f1a48c0 100644 --- a/client.c +++ b/client.c @@ -757,10 +757,7 @@ client_updatewmhints(client_t *c) } if((wmh.flags & XCB_WM_HINT_STATE) && wmh.initial_state == XCB_WM_STATE_WITHDRAWN) - { client_setborder(c, 0); - c->skip = true; - } } } @@ -907,7 +904,7 @@ luaA_client_visible_get(lua_State *L) lua_newtable(L); for(c = globalconf.clients; c; c = c->next) - if(!c->skip && client_isvisible(c, screen)) + if(client_isvisible(c, screen)) { luaA_client_userdata_new(globalconf.L, c); lua_rawseti(L, -2, i++); diff --git a/ewmh.c b/ewmh.c index f59c405e..54be79ae 100644 --- a/ewmh.c +++ b/ewmh.c @@ -260,15 +260,9 @@ ewmh_process_state_atom(client_t *c, xcb_atom_t state, int set) else if(state == _NET_WM_STATE_SKIP_TASKBAR) { if(set == _NET_WM_STATE_REMOVE) - { c->skiptb = false; - c->skip = false; - } else if(set == _NET_WM_STATE_ADD) - { c->skiptb = true; - c->skip = true; - } } else if(state == _NET_WM_STATE_FULLSCREEN) { @@ -378,7 +372,6 @@ ewmh_process_window_type_atom(client_t *c, xcb_atom_t state) else if(state == _NET_WM_WINDOW_TYPE_DOCK || state == _NET_WM_WINDOW_TYPE_SPLASH) { - c->skip = true; c->isfixed = true; if(c->titlebar && c->titlebar->position && c->titlebar->sw) { @@ -400,7 +393,6 @@ ewmh_process_window_type_atom(client_t *c, xcb_atom_t state) tag_array_t *tags = &globalconf.screens[c->screen].tags; c->noborder = true; c->isfixed = true; - c->skip = true; client_setlayer(c, LAYER_DESKTOP); for(int i = 0; i < tags->len; i++) tag_client(c, tags->tab[i]); diff --git a/structs.h b/structs.h index 6bbc7284..ec02bbe0 100644 --- a/structs.h +++ b/structs.h @@ -281,8 +281,6 @@ struct client_t bool isfixed; /** true if the window is maximized */ bool ismax; - /** true if the client must be skipped from client list */ - bool skip; /** true if the client is moving */ bool ismoving; /** True if the client is hidden */ diff --git a/widgets/tasklist.c b/widgets/tasklist.c index 1568a9d9..d1af3089 100644 --- a/widgets/tasklist.c +++ b/widgets/tasklist.c @@ -215,7 +215,7 @@ tasklist_draw(draw_context_t *ctx, int screen, client_label_array_init(&odata->client_labels); for(c = globalconf.clients; c; c = c->next) - if(!c->skip && !c->skiptb) + if(!c->skiptb) { /* push client */ luaA_client_userdata_new(globalconf.L, c);