client: remove useless skip attribute

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-21 16:32:59 +02:00
parent 8543dfae5c
commit cfa9de3126
4 changed files with 2 additions and 15 deletions

View File

@ -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++);

8
ewmh.c
View File

@ -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]);

View File

@ -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 */

View File

@ -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);