From c63657049fa2a7446b59464acfe7bceef4314ff8 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 7 Dec 2008 11:05:21 +0100 Subject: [PATCH] client: check KDE dock app before Otherwise we leak the NETWM_ICON retrieval. Signed-off-by: Julien Danjou --- client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client.c b/client.c index 2add23c04..dc19b5606 100644 --- a/client.c +++ b/client.c @@ -415,9 +415,6 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int phys_screen, | XCB_EVENT_MASK_ENTER_WINDOW }; - /* Send request to get NET_WM_ICON property as soon as possible... */ - ewmh_icon_cookie = ewmh_window_icon_get_unchecked(w); - xcb_change_window_attributes(globalconf.connection, w, XCB_CW_EVENT_MASK, select_input_val); if(systray_iskdedockapp(w)) { @@ -425,6 +422,9 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int phys_screen, return; } + /* Send request to get NET_WM_ICON property as soon as possible... */ + ewmh_icon_cookie = ewmh_window_icon_get_unchecked(w); + xcb_change_window_attributes(globalconf.connection, w, XCB_CW_EVENT_MASK, select_input_val); c = p_new(client_t, 1); c->screen = screen_getbycoord(screen, wgeom->x, wgeom->y);