mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
if virt/horz un-maximizing, restore only the un-maximized axis
coordinates; allows moving a client and not restoring the maximized axis coordinates. picked from a larger martynas diff from ages ago. ok oga@
This commit is contained in:
parent
9b4985439e
commit
8f88cd474a
5
client.c
5
client.c
|
@ -396,6 +396,11 @@ client_resize(struct client_ctx *cc)
|
||||||
void
|
void
|
||||||
client_move(struct client_ctx *cc)
|
client_move(struct client_ctx *cc)
|
||||||
{
|
{
|
||||||
|
if (cc->flags & CLIENT_VMAXIMIZED)
|
||||||
|
cc->savegeom.x = cc->geom.x;
|
||||||
|
if (cc->flags & CLIENT_HMAXIMIZED)
|
||||||
|
cc->savegeom.y = cc->geom.y;
|
||||||
|
|
||||||
XMoveWindow(X_Dpy, cc->win, cc->geom.x, cc->geom.y);
|
XMoveWindow(X_Dpy, cc->win, cc->geom.x, cc->geom.y);
|
||||||
xu_configure(cc);
|
xu_configure(cc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user