diff options
author | okan | 2011-03-22 10:56:08 +0000 |
---|---|---|
committer | okan | 2011-03-22 10:56:08 +0000 |
commit | 6744c6dfbae31f04a8b397d35d144743b5845246 (patch) | |
tree | 86cbaf3ff9970a5b1e9ceb74af7af065e19780cd /client.c | |
parent | 6936490329d266aee84eaf7c7ecf7881683ccc5b (diff) | |
download | cwm-6744c6dfbae31f04a8b397d35d144743b5845246.tar.gz |
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 '')
-rw-r--r-- | client.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); } |