diff options
author | rathnor <rathnor> | 2003-07-19 13:51:24 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-07-19 13:51:24 (GMT) |
commit | 9c3b06945a4079f1cbd83441a0a68fc6694b6be5 (patch) | |
tree | f569aecc7f6dec622a62cb8dcbc3ebb4f0b984d0 /src/FbCommands.cc | |
parent | 2f1f364fa2d7c72b93d4dbcde321abace5e2109d (diff) | |
download | fluxbox-9c3b06945a4079f1cbd83441a0a68fc6694b6be5.zip fluxbox-9c3b06945a4079f1cbd83441a0a68fc6694b6be5.tar.bz2 |
fix most commands to run on screen mouse is in, rather than focused window
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r-- | src/FbCommands.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc index 1c84154..3529ebf 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: FbCommands.cc,v 1.11 2003/07/01 20:24:19 fluxgen Exp $ | 22 | // $Id: FbCommands.cc,v 1.12 2003/07/19 13:51:24 rathnor Exp $ |
23 | 23 | ||
24 | #include "FbCommands.hh" | 24 | #include "FbCommands.hh" |
25 | #include "fluxbox.hh" | 25 | #include "fluxbox.hh" |
@@ -47,10 +47,10 @@ void ExecuteCmd::execute() { | |||
47 | char intbuff[64]; | 47 | char intbuff[64]; |
48 | int screen_num = m_screen_num; | 48 | int screen_num = m_screen_num; |
49 | if (screen_num < 0) { | 49 | if (screen_num < 0) { |
50 | if (Fluxbox::instance()->keyScreen() == 0) | 50 | if (Fluxbox::instance()->mouseScreen() == 0) |
51 | screen_num = 0; | 51 | screen_num = 0; |
52 | else | 52 | else |
53 | screen_num = Fluxbox::instance()->keyScreen()->screenNumber(); | 53 | screen_num = Fluxbox::instance()->mouseScreen()->screenNumber(); |
54 | } | 54 | } |
55 | 55 | ||
56 | sprintf(intbuff, "%d", screen_num); | 56 | sprintf(intbuff, "%d", screen_num); |