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:
okan 2011-03-22 10:56:08 +00:00
parent 9b4985439e
commit 8f88cd474a

View File

@ -396,6 +396,11 @@ client_resize(struct client_ctx *cc)
void
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);
xu_configure(cc);
}