diff options
author | Shawn <sabetts@juicebox.(none)> | 2008-02-06 16:50:28 -0800 |
---|---|---|
committer | Shawn <sabetts@juicebox.(none)> | 2008-02-06 16:50:28 -0800 |
commit | 42459044340ce1cb016a9a7d85e8c784f7e36979 (patch) | |
tree | 647367fc3d59b1420e729b5a29ab67aaf0eb91cf /src/events.c | |
parent | bd51b1705292845686f8f682d15f6b7b90ddc787 (diff) | |
parent | 37933658a66f1d7f5cc00cbf83882b84cf8c8337 (diff) | |
download | ratpoison-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.c | 6 |
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); } |