From 2d753ba2285183def18637009c806b8b4ef7b1a0 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 5 Nov 2008 10:24:23 +0100 Subject: [PATCH] client: move to screen after checking hints If we do the opposite, a window which is floating considering its EWMH attribute may never get a move-resize request so its f_geometry will be registered only. Since we put it after with this patch, it screen_client_moveto() will send correctly the move-resize request. Signed-off-by: Julien Danjou --- client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index 9096f9bc2..7a82bb8fc 100644 --- a/client.c +++ b/client.c @@ -424,12 +424,13 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int phys_screen, /* Try to load props if any */ client_loadprops(c, &globalconf.screens[screen]); - /* move client to screen, but do not tag it for now */ - screen_client_moveto(c, screen, false, true); /* Then check clients hints */ ewmh_client_check_hints(c); + /* move client to screen, but do not tag it for now */ + screen_client_moveto(c, screen, false, true); + /* Check if client has been tagged by loading props, or maybe with its * hints. * If not, we tag it with current selected ones.