From 712234b1331548f5f677b7602e6d8a924b66af3f Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 13 Oct 2009 15:43:50 +0200 Subject: [PATCH] client: use window attribute rather than invalid Signed-off-by: Julien Danjou --- objects/client.c | 4 ++-- objects/client.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/objects/client.c b/objects/client.c index 7c56737f3..6c4d67431 100644 --- a/objects/client.c +++ b/objects/client.c @@ -1002,7 +1002,7 @@ client_unmanage(client_t *c) xwindow_set_state(c->window, XCB_WM_STATE_WITHDRAWN); /* set client as invalid */ - c->invalid = true; + c->window = XCB_NONE; luaA_object_unref(globalconf.L, c); } @@ -1731,7 +1731,7 @@ luaA_client_module_newindex(lua_State *L) static bool client_checker(client_t *c) { - return !c->invalid; + return c->window != XCB_NONE; } void diff --git a/objects/client.h b/objects/client.h index 67b7638b0..c67a24071 100644 --- a/objects/client.h +++ b/objects/client.h @@ -65,8 +65,6 @@ typedef enum struct client_t { WINDOW_OBJECT_HEADER - /** Valid, or not ? */ - bool invalid; /** Client name */ char *name, *alt_name, *icon_name, *alt_icon_name; /** WM_CLASS stuff */