From 9c70c77fb260136c18d224fd76357457df119343 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 8 Aug 2009 13:11:37 +0200 Subject: [PATCH] client: remove transient_for intelligence in manage awful does that well. Signed-off-by: Julien Danjou --- client.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/client.c b/client.c index 5589fa8d..236c0d16 100644 --- a/client.c +++ b/client.c @@ -493,7 +493,6 @@ void client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int phys_screen, bool startup) { xcb_get_property_cookie_t ewmh_icon_cookie; - client_t *c, *tc = NULL; screen_t *screen; const uint32_t select_input_val[] = { CLIENT_SELECT_INPUT_EVENT_MASK }; @@ -507,7 +506,7 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int phys_screen, ewmh_icon_cookie = ewmh_window_icon_get_unchecked(w); xcb_change_window_attributes(globalconf.connection, w, XCB_CW_EVENT_MASK, select_input_val); - c = client_new(globalconf.L); + client_t *c = client_new(globalconf.L); /* Push client in client list */ client_array_push(&globalconf.clients, client_ref(globalconf.L, -1)); @@ -550,11 +549,6 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int phys_screen, property_update_wm_transient_for(c, NULL); property_update_wm_client_leader(c, NULL); - /* Recursively find the parent. */ - for(tc = c; tc->transient_for; tc = tc->transient_for); - if(tc != c && tc->phys_screen == c->phys_screen) - screen = tc->screen; - /* Then check clients hints */ ewmh_client_check_hints(c);