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:
parent
0d98ed7f5a
commit
2d753ba228
5
client.c
5
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 */
|
/* Try to load props if any */
|
||||||
client_loadprops(c, &globalconf.screens[screen]);
|
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 */
|
/* Then check clients hints */
|
||||||
ewmh_client_check_hints(c);
|
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
|
/* Check if client has been tagged by loading props, or maybe with its
|
||||||
* hints.
|
* hints.
|
||||||
* If not, we tag it with current selected ones.
|
* If not, we tag it with current selected ones.
|
||||||
|
|
Loading…
Reference in New Issue