From 8f88cd474a20772e72a7db5abe3013e2be223108 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 22 Mar 2011 10:56:08 +0000 Subject: [PATCH] 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@ --- client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client.c b/client.c index a9838bc..237c0ce 100644 --- a/client.c +++ b/client.c @@ -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); }