Hi everybody!

I'm new to this list, so let me thak first Brad and Jeff, and all the
contributors, for this beautiful work.

Here is my concern: I use bbkeys to move between workspaces and windows.
After switching workspaces, it can happen that no window has the focus.
In this case, the NextWindow key gives the focus to the first window,
which is fine. But the PrevWindow key gives also the focus to the first
window, which is conter-intiutive to me. I expect this key to give the
focus to the last window, just like if "no window" was between the last
and the first window in a circular list.

And here is the one-line patch:

diff -ruN blackbox-0.61.1.orig/src/Screen.cc blackbox-0.61.1/src/Screen.cc
--- blackbox-0.61.1.orig/src/Screen.cc  Thu Oct  5 22:01:12 2000
+++ blackbox-0.61.1/src/Screen.cc       Fri Apr  6 21:13:17 2001
@@ -1713,7 +1713,7 @@
     if (prev_window_number != focused_window_number)
       getCurrentWorkspace()->raiseWindow(prev);
   } else if (getCurrentWorkspace()->getCount() >= 1) {
-    prev = current_workspace->getWindow(0);
+    prev = current_workspace->getWindow(getCurrentWorkspace()->getCount() - 1);
 
     current_workspace->raiseWindow(prev);
     prev->setInputFocus();

Regards,

Edgar.

-- 
Edgar Bonet                         Tel :    +1 607 255-9349
LASSP -- Cornell University         Fax :    +1 607 255-6428
Clark Hall                          e-mail : [EMAIL PROTECTED]
Ithaca, NY 14853, USA               web :    www.edgar-bonet.org

Reply via email to