aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-04-20 12:21:35 (GMT)
committerrathnor <rathnor>2003-04-20 12:21:35 (GMT)
commit2a1bc27e90ae96f14a2fc0164fef074974023389 (patch)
tree260f797a90be16e2d86c64156d96c2089b730040 /src/fluxbox.cc
parente75378d0e6d5891536e24389fcbeabeb7a9d579a (diff)
downloadfluxbox_pavel-2a1bc27e90ae96f14a2fc0164fef074974023389.zip
fluxbox_pavel-2a1bc27e90ae96f14a2fc0164fef074974023389.tar.bz2
add directional focus movement (Simon)
incl new keybindings FocusUp, FocusDown, FocusLeft, FocusRight
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index a0a75f0..d2dc234 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: fluxbox.cc,v 1.114 2003/04/16 16:18:06 rathnor Exp $ 25// $Id: fluxbox.cc,v 1.115 2003/04/20 12:21:35 rathnor Exp $
26 26
27#include "fluxbox.hh" 27#include "fluxbox.hh"
28 28
@@ -1165,6 +1165,22 @@ void Fluxbox::handleKeyEvent(XKeyEvent &ke) {
1165 } 1165 }
1166 screen->prevFocus(key->getParam()); 1166 screen->prevFocus(key->getParam());
1167 break; 1167 break;
1168 case Keys::FOCUSUP:
1169 if (focused_window)
1170 screen->dirFocus(*focused_window, BScreen::FOCUSUP);
1171 break;
1172 case Keys::FOCUSDOWN:
1173 if (focused_window)
1174 screen->dirFocus(*focused_window, BScreen::FOCUSDOWN);
1175 break;
1176 case Keys::FOCUSLEFT:
1177 if (focused_window)
1178 screen->dirFocus(*focused_window, BScreen::FOCUSLEFT);
1179 break;
1180 case Keys::FOCUSRIGHT:
1181 if (focused_window)
1182 screen->dirFocus(*focused_window, BScreen::FOCUSRIGHT);
1183 break;
1168 case Keys::NEXTTAB: 1184 case Keys::NEXTTAB:
1169 if (focused_window && focused_window->numClients() > 1) 1185 if (focused_window && focused_window->numClients() > 1)
1170 focused_window->nextClient(); 1186 focused_window->nextClient();