aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-07-19 13:51:24 (GMT)
committerrathnor <rathnor>2003-07-19 13:51:24 (GMT)
commit9c3b06945a4079f1cbd83441a0a68fc6694b6be5 (patch)
treef569aecc7f6dec622a62cb8dcbc3ebb4f0b984d0 /src/WorkspaceCmd.cc
parent2f1f364fa2d7c72b93d4dbcde321abace5e2109d (diff)
downloadfluxbox-9c3b06945a4079f1cbd83441a0a68fc6694b6be5.zip
fluxbox-9c3b06945a4079f1cbd83441a0a68fc6694b6be5.tar.bz2
fix most commands to run on screen mouse is in, rather than focused window
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r--src/WorkspaceCmd.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index 45bf7a2..ac71112 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.2 2003/07/01 09:47:41 fluxgen Exp $ 23// $Id: WorkspaceCmd.cc,v 1.3 2003/07/19 13:51:24 rathnor Exp $
24 24
25#include "WorkspaceCmd.hh" 25#include "WorkspaceCmd.hh"
26#include "Workspace.hh" 26#include "Workspace.hh"
@@ -74,25 +74,25 @@ void PrevWindowCmd::execute() {
74} 74}
75 75
76void NextWorkspaceCmd::execute() { 76void NextWorkspaceCmd::execute() {
77 BScreen *screen = Fluxbox::instance()->keyScreen(); 77 BScreen *screen = Fluxbox::instance()->mouseScreen();
78 if (screen != 0) 78 if (screen != 0)
79 screen->nextWorkspace(); 79 screen->nextWorkspace();
80} 80}
81 81
82void PrevWorkspaceCmd::execute() { 82void PrevWorkspaceCmd::execute() {
83 BScreen *screen = Fluxbox::instance()->keyScreen(); 83 BScreen *screen = Fluxbox::instance()->mouseScreen();
84 if (screen != 0) 84 if (screen != 0)
85 screen->prevWorkspace(); 85 screen->prevWorkspace();
86} 86}
87 87
88void LeftWorkspaceCmd::execute() { 88void LeftWorkspaceCmd::execute() {
89 BScreen *screen = Fluxbox::instance()->keyScreen(); 89 BScreen *screen = Fluxbox::instance()->mouseScreen();
90 if (screen != 0) 90 if (screen != 0)
91 screen->leftWorkspace(m_param); 91 screen->leftWorkspace(m_param);
92} 92}
93 93
94void RightWorkspaceCmd::execute() { 94void RightWorkspaceCmd::execute() {
95 BScreen *screen = Fluxbox::instance()->keyScreen(); 95 BScreen *screen = Fluxbox::instance()->mouseScreen();
96 if (screen != 0) 96 if (screen != 0)
97 screen->rightWorkspace(m_param); 97 screen->rightWorkspace(m_param);
98} 98}
@@ -100,14 +100,14 @@ void RightWorkspaceCmd::execute() {
100JumpToWorkspaceCmd::JumpToWorkspaceCmd(int workspace_num):m_workspace_num(workspace_num) { } 100JumpToWorkspaceCmd::JumpToWorkspaceCmd(int workspace_num):m_workspace_num(workspace_num) { }
101 101
102void JumpToWorkspaceCmd::execute() { 102void JumpToWorkspaceCmd::execute() {
103 BScreen *screen = Fluxbox::instance()->keyScreen(); 103 BScreen *screen = Fluxbox::instance()->mouseScreen();
104 if (screen != 0 && m_workspace_num >= 0 && m_workspace_num < screen->getNumberOfWorkspaces()) 104 if (screen != 0 && m_workspace_num >= 0 && m_workspace_num < screen->getNumberOfWorkspaces())
105 screen->changeWorkspaceID(m_workspace_num); 105 screen->changeWorkspaceID(m_workspace_num);
106} 106}
107 107
108 108
109void ArrangeWindowsCmd::execute() { 109void ArrangeWindowsCmd::execute() {
110 BScreen *screen = Fluxbox::instance()->keyScreen(); 110 BScreen *screen = Fluxbox::instance()->mouseScreen();
111 if (screen == 0) 111 if (screen == 0)
112 return; 112 return;
113 113
@@ -159,7 +159,7 @@ void ArrangeWindowsCmd::execute() {
159} 159}
160 160
161void ShowDesktopCmd::execute() { 161void ShowDesktopCmd::execute() {
162 BScreen *screen = Fluxbox::instance()->keyScreen(); 162 BScreen *screen = Fluxbox::instance()->mouseScreen();
163 if (screen == 0) 163 if (screen == 0)
164 return; 164 return;
165 165