From 6744c6dfbae31f04a8b397d35d144743b5845246 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 22 Mar 2011 10:56:08 +0000 Subject: 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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index 6f7c986..ff2df5c 100644 --- a/client.c +++ b/client.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: client.c,v 1.79 2011/03/22 10:52:37 okan Exp $ + * $Id: client.c,v 1.80 2011/03/22 10:56:08 okan Exp $ */ #include @@ -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); } -- cgit v1.2.3-2-gb3c3