summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mcwm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mcwm.c b/mcwm.c
index 4edea25..f9b08df 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -1573,6 +1573,10 @@ void unmax(struct client *client)
| XCB_CONFIG_WINDOW_HEIGHT | XCB_CONFIG_WINDOW_BORDER_WIDTH;
xcb_configure_window(conn, client->id, mask, values);
+ /* Warp pointer to window or we might lose it. */
+ xcb_warp_pointer(conn, XCB_NONE, client->id, 0, 0, 0, 0,
+ 1, 1);
+
xcb_flush(conn);
}