From 7166ea9f8813c58c9353d793899c286dd6c2629d Mon Sep 17 00:00:00 2001 From: Okan Demirmen Date: Tue, 22 Mar 2011 10:56:09 +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@ --- app/cwm/client.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/cwm/client.c b/app/cwm/client.c index 6f7c986b2..ff2df5c11 100644 --- a/app/cwm/client.c +++ b/app/cwm/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