summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
authorShawn <sabetts@juicebox.(none)>2008-02-06 16:50:28 -0800
committerShawn <sabetts@juicebox.(none)>2008-02-06 16:50:28 -0800
commit42459044340ce1cb016a9a7d85e8c784f7e36979 (patch)
tree647367fc3d59b1420e729b5a29ab67aaf0eb91cf /src/events.c
parentbd51b1705292845686f8f682d15f6b7b90ddc787 (diff)
parent37933658a66f1d7f5cc00cbf83882b84cf8c8337 (diff)
downloadratpoison-42459044340ce1cb016a9a7d85e8c784f7e36979.zip
Merge branch 'master' of ssh://sabetts@git.sv.gnu.org/srv/git/ratpoison
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/events.c b/src/events.c
index ec26ceb..e52acf4 100644
--- a/src/events.c
+++ b/src/events.c
@@ -139,6 +139,9 @@ unmap_notify (XEvent *ev)
if (frame->number == win->scr->current_frame
&& current_screen() == win->scr)
set_active_frame (frame, 0);
+ /* Since we may have switched windows, call the hook. */
+ if (frame->win_number != EMPTY)
+ hook_run (&rp_switch_win_hook);
}
withdraw_window (win);
@@ -234,6 +237,9 @@ destroy_window (XDestroyWindowEvent *ev)
&& current_screen() == win->scr)
set_active_frame (frame, 0);
}
+ /* Since we may have switched windows, call the hook. */
+ if (frame->win_number != EMPTY)
+ hook_run (&rp_switch_win_hook);
withdraw_window (win);
}