about summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authorokan <okan>2011-03-22 10:56:08 +0000
committerokan <okan>2011-03-22 10:56:08 +0000
commit8f88cd474a20772e72a7db5abe3013e2be223108 (patch)
tree925b68581a94eedad1018997409d144a98e655ef /client.c
parent9b4985439e1a1f5acd54cf21039307dba660eed4 (diff)
downloadcwm-8f88cd474a20772e72a7db5abe3013e2be223108.tar.gz
cwm-8f88cd474a20772e72a7db5abe3013e2be223108.tar.xz
cwm-8f88cd474a20772e72a7db5abe3013e2be223108.zip
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@
Diffstat (limited to 'client.c')
-rw-r--r--client.c5
1 files changed, 5 insertions, 0 deletions
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);
 }