diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2011-03-22 10:56:09 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2011-03-22 10:56:09 +0000 |
commit | 7166ea9f8813c58c9353d793899c286dd6c2629d (patch) | |
tree | d310d84816e8f16f16b19abf653570fb986fa1bd | |
parent | c6fb51d9c4f0df7e0732301d99a99e034d7f42f8 (diff) |
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@
-rw-r--r-- | app/cwm/client.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 <sys/param.h> @@ -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); } |