aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r--src/WorkspaceCmd.cc15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index 33ff818..946f84b 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: WorkspaceCmd.cc,v 1.10 2004/01/16 09:21:31 fluxgen Exp $ 23// $Id: WorkspaceCmd.cc,v 1.11 2004/04/28 14:59:12 rathnor Exp $
24 24
25#include "WorkspaceCmd.hh" 25#include "WorkspaceCmd.hh"
26 26
@@ -28,6 +28,7 @@
28#include "Window.hh" 28#include "Window.hh"
29#include "Screen.hh" 29#include "Screen.hh"
30#include "fluxbox.hh" 30#include "fluxbox.hh"
31#include "WinClient.hh"
31 32
32#include "FbTk/KeyUtil.hh" 33#include "FbTk/KeyUtil.hh"
33 34
@@ -79,6 +80,18 @@ void PrevWindowCmd::execute() {
79 } 80 }
80} 81}
81 82
83void DirFocusCmd::execute() {
84 BScreen *screen = Fluxbox::instance()->keyScreen();
85 if (screen == 0)
86 return;
87
88 WinClient *client = Fluxbox::instance()->getFocusedWindow();
89 if (client == 0 || client->fbwindow() == 0)
90 return;
91
92 screen->dirFocus(*client->fbwindow(), m_dir);
93}
94
82void NextWorkspaceCmd::execute() { 95void NextWorkspaceCmd::execute() {
83 BScreen *screen = Fluxbox::instance()->mouseScreen(); 96 BScreen *screen = Fluxbox::instance()->mouseScreen();
84 if (screen != 0) 97 if (screen != 0)