ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RP] Patch to make cmd_focus{left, right, up, down} more verbose when do


From: Bernhard R. Link
Subject: [RP] Patch to make cmd_focus{left, right, up, down} more verbose when doing nothing
Date: Sat, 15 Jan 2005 15:00:54 +0100
User-agent: Mutt/1.3.28i

The following patch makes the cmd_focus<direction> commands more verbose
if there is nothing to do. In my experience, one will only move the
focus in a impossible direction, if one lost track what currently is
focused. Then this patch will show what is focused.

Hochachtungsvoll,
        Bernhard R. Link

Index: ChangeLog
===================================================================
RCS file: /cvsroot/ratpoison/ratpoison/ChangeLog,v
retrieving revision 1.363
diff -u -r1.363 ChangeLog
--- ChangeLog   15 Jan 2005 09:06:32 -0000      1.363
+++ ChangeLog   15 Jan 2005 11:15:53 -0000
@@ -1,1 +1,6 @@
+2004-01-15  Bernhard R. Link <address@hidden>
+
+       * actions.c: (cmd_focus{left,right,up,down}): show currectframe if
+       movement not possible.
+
 2005-01-15  Ryan Yeske  <address@hidden>
Index: src/actions.c
===================================================================
RCS file: /cvsroot/ratpoison/ratpoison/src/actions.c,v
retrieving revision 1.228
diff -u -r1.228 actions.c
--- src/actions.c       15 Jan 2005 05:20:21 -0000      1.228
+++ src/actions.c       15 Jan 2005 11:15:54 -0000
@@ -3711,6 +3711,8 @@
 
   if ((frame = find_frame_up (current_frame())))
     set_active_frame (frame);
+  else
+    show_frame_indicator();
 
   return cmdret_new (NULL, RET_SUCCESS);
 }
@@ -3722,6 +3724,8 @@
 
   if ((frame = find_frame_down (current_frame())))
     set_active_frame (frame);
+  else
+    show_frame_indicator();
 
   return cmdret_new (NULL, RET_SUCCESS);
 }
@@ -3733,6 +3737,8 @@
 
   if ((frame = find_frame_left (current_frame())))
     set_active_frame (frame);
+  else
+    show_frame_indicator();
 
   return cmdret_new (NULL, RET_SUCCESS);
 }
@@ -3744,6 +3750,8 @@
 
   if ((frame = find_frame_right (current_frame())))
     set_active_frame (frame);
+  else
+    show_frame_indicator();
 
   return cmdret_new (NULL, RET_SUCCESS);
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]