[client] Save geometry of windows when resizing in floating layout
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
9d99ff48ae
commit
1d8481fc9e
3
client.c
3
client.c
|
@ -534,7 +534,10 @@ client_resize(client_t *c, area_t geometry, bool hints)
|
||||||
* maximized */
|
* maximized */
|
||||||
if(c->ismoving || c->isfloating
|
if(c->ismoving || c->isfloating
|
||||||
|| layout_get_current(new_screen) == layout_floating)
|
|| layout_get_current(new_screen) == layout_floating)
|
||||||
|
{
|
||||||
titlebar_update_geometry_floating(c);
|
titlebar_update_geometry_floating(c);
|
||||||
|
c->f_geometry = geometry;
|
||||||
|
}
|
||||||
|
|
||||||
xcb_configure_window(globalconf.connection, c->win,
|
xcb_configure_window(globalconf.connection, c->win,
|
||||||
XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y |
|
XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y |
|
||||||
|
|
Loading…
Reference in New Issue