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 <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-05 10:24:23 +01:00
parent 0d98ed7f5a
commit 2d753ba228
1 changed files with 3 additions and 2 deletions

View File

@ -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.