summaryrefslogtreecommitdiff
path: root/window-table.c
diff options
context:
space:
mode:
authorGary Wong <gtw@gnu.org>2009-09-01 14:48:01 -0600
committerGary Wong <gtw@gnu.org>2009-09-01 14:48:01 -0600
commit86c8dfa5b8017f7a940ed2e7333ee27a4af199a8 (patch)
treeba4a17ca0804df2c89eab84dd21508158cfad531 /window-table.c
parentcf1b6f1e83b798ad54bdf6147dc3557220d7312a (diff)
Replace passive_grab with pointer_demux (redirecting events on client side).
Diffstat (limited to 'window-table.c')
-rw-r--r--window-table.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/window-table.c b/window-table.c
index 1ab65f7..6970171 100644
--- a/window-table.c
+++ b/window-table.c
@@ -317,6 +317,9 @@ extern MALLOC struct gwm_window *add_window( xcb_window_t w ) {
extern void forget_window( struct gwm_window *window ) {
+ if( pointer_demux == window->w )
+ pointer_demux = XCB_NONE;
+
table_delete( &windows, window->w );
table_delete( &update_windows, window->w );
free( window );