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 | |
parent | bd51b1705292845686f8f682d15f6b7b90ddc787 (diff) | |
parent | 37933658a66f1d7f5cc00cbf83882b84cf8c8337 (diff) | |
download | ratpoison-42459044340ce1cb016a9a7d85e8c784f7e36979.zip |
Merge branch 'master' of ssh://sabetts@git.sv.gnu.org/srv/git/ratpoison
-rwxr-xr-x | contrib/genrpbindings | 2 | ||||
-rw-r--r-- | doc/ratpoison.texi | 2 | ||||
-rw-r--r-- | src/events.c | 6 |
3 files changed, 8 insertions, 2 deletions
diff --git a/contrib/genrpbindings b/contrib/genrpbindings index dffa99c..51a6148 100755 --- a/contrib/genrpbindings +++ b/contrib/genrpbindings @@ -60,7 +60,7 @@ open PYTHON, ">$PYTHON_FILE" or die "Can't create $PYTHON_FILE"; # PERL preamble print PERL 'package Ratpoison;'; print PERL '$RATPOISON="',$RATPOISON,'";'; -print PERL 'sub command { return `$RATPOISON -c "@_"`; }'; +print PERL 'sub command { my $a = "@_"; $a =~ s/(\')/\'\\\\\'\'/g; return `$RATPOISON -c \'$a\'`; }'; # ELISP preamble print ELISP '(defvar ratpoison-program "',$RATPOISON,'")'; diff --git a/doc/ratpoison.texi b/doc/ratpoison.texi index 9b8ec84..3a42419 100644 --- a/doc/ratpoison.texi +++ b/doc/ratpoison.texi @@ -74,7 +74,7 @@ details. @node Top, GNU Free Documentation License, (dir), (dir) @ifinfo -This document explains how to use ratpoison 1.4.1. +This document explains how to use ratpoison 1.4.3. @end ifinfo @menu 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); } |