about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkn <kn>2021-04-22 10:02:55 +0000
committerkn <kn>2021-04-22 10:02:55 +0000
commitf24dd4751770e387ab39c2c64d7c52bed533ed7e (patch)
tree6cac61b743959642b438ee04353cd1e2b1e8bde8
parent9fb725f417a5cee1be4a768c94e49c4f0ce65dcf (diff)
parentd46f34f01eba56f989af90e277fc0c673ad3684f (diff)
downloadcwm-f24dd4751770e387ab39c2c64d7c52bed533ed7e.tar.gz
cwm-f24dd4751770e387ab39c2c64d7c52bed533ed7e.tar.xz
cwm-f24dd4751770e387ab39c2c64d7c52bed533ed7e.zip
cvsimport
* refs/heads/master:
  Keep pointer within window on maximize/fullscreen toggle
-rw-r--r--client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/client.c b/client.c
index 821da25..f9262f8 100644
--- a/client.c
+++ b/client.c
@@ -336,6 +336,7 @@ client_toggle_fullscreen(struct client_ctx *cc)
 resize:
 	client_resize(cc, 0);
 	xu_ewmh_set_net_wm_state(cc);
+	client_ptr_inbound(cc, 1);
 }
 
 void
@@ -376,6 +377,7 @@ client_toggle_maximize(struct client_ctx *cc)
 resize:
 	client_resize(cc, 0);
 	xu_ewmh_set_net_wm_state(cc);
+	client_ptr_inbound(cc, 1);
 }
 
 void
@@ -408,6 +410,7 @@ client_toggle_vmaximize(struct client_ctx *cc)
 resize:
 	client_resize(cc, 0);
 	xu_ewmh_set_net_wm_state(cc);
+	client_ptr_inbound(cc, 1);
 }
 
 void
@@ -440,6 +443,7 @@ client_toggle_hmaximize(struct client_ctx *cc)
 resize:
 	client_resize(cc, 0);
 	xu_ewmh_set_net_wm_state(cc);
+	client_ptr_inbound(cc, 1);
 }
 
 void