diff options
author | MC <mc@hack.org> | 2010-07-08 13:42:58 +0200 |
---|---|---|
committer | MC <mc@hack.org> | 2010-07-08 13:42:58 +0200 |
commit | 17374c6f8901fc001ffb8d6d5fee4804d774a655 (patch) | |
tree | 280fe2081b5444d8d5cd6316c5b697dc1cb33020 | |
parent | c4ae3ab4fcab0e31e50a105d67b7c43864a5d3c5 (diff) | |
download | mcwm-17374c6f8901fc001ffb8d6d5fee4804d774a655.zip |
Warp pointer when unmaximizing.
-rw-r--r-- | mcwm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } |