summaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r--src/WorkspaceCmd.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index c3dd402..5b5b607 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -91,11 +91,9 @@ void DirFocusCmd::execute() {
91 if (screen == 0) 91 if (screen == 0)
92 return; 92 return;
93 93
94 WinClient *client = FocusControl::focusedWindow(); 94 FluxboxWindow *win = FocusControl::focusedFbWindow();
95 if (client == 0 || client->fbwindow() == 0) 95 if (win)
96 return; 96 screen->focusControl().dirFocus(*win, m_dir);
97
98 screen->focusControl().dirFocus(*client->fbwindow(), m_dir);
99} 97}
100 98
101void NextWorkspaceCmd::execute() { 99void NextWorkspaceCmd::execute() {