From c72f0811c3c6f35183e7ced8b686411f329c8671 Mon Sep 17 00:00:00 2001 From: Shawn Betts Date: Thu, 11 Oct 2007 13:57:37 -0700 Subject: Properly shell-escape ratpoison commands for perl bindings. --- contrib/genrpbindings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,'")'; -- cgit v1.2.3 From c322af661de758faab2a8035d1dbfd64b36a5082 Mon Sep 17 00:00:00 2001 From: Shawn Betts Date: Mon, 22 Oct 2007 02:24:25 -0700 Subject: bump the version number in the docs to 1.4.3 --- doc/ratpoison.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3 From 37933658a66f1d7f5cc00cbf83882b84cf8c8337 Mon Sep 17 00:00:00 2001 From: Shawn Betts Date: Fri, 7 Dec 2007 12:12:07 -0800 Subject: call switchwin hook when a window in unmapped or destroyed --- src/events.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/events.c b/src/events.c index bdc288f..25f7c1c 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); } -- cgit v1.2.3