If you issue the ratpoison command 'select -', switchwinhook isn't
triggered. This struck me as more bug than feature, so here's a patch
that triggers switchwinhook on 'select -'. (But one could argue that
'select -' doesn't really switch to a window so it really was a
feature all along...)
I put it in the '-' case in cmd_select itself rather than in
blank_frame so the switchwinhooks don't get triggered repeatedly
during an frestore.
diff --git a/src/actions.c b/src/actions.c
index b3baadb..ff354ce 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -1366,6 +1366,7 @@ cmd_select (int interactive UNUSED, struct cmdarg **args)
if (strlen (str) == 1 && str[0] == '-')
{
blank_frame (current_frame());
+ hook_run (&rp_switch_win_hook);
}
/* try by number */
else if ((n = string_to_window_number (str)) >= 0)
_______________________________________________
Ratpoison-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/ratpoison-devel