diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-11-20 13:05:07 (GMT) |
---|---|---|
committer | Thomas Lübking <thomas.luebking@gmail.com> | 2016-11-20 13:08:25 (GMT) |
commit | 26c1cfcc07c88b02bd9aa1c23aca61d8a3a313ea (patch) | |
tree | 72fd549edb52c364b3146fed24f07ddd3ddd03ad /src/WorkspaceCmd.cc | |
parent | 3d7b466e7aff343dee152d4937d824d2860aac6b (diff) | |
download | fluxbox-26c1cfcc07c88b02bd9aa1c23aca61d8a3a313ea.zip fluxbox-26c1cfcc07c88b02bd9aa1c23aca61d8a3a313ea.tar.bz2 |
stop focus cycling on explicit workspace changes
Otherwise implicit focus changes by the workspace change would be
perceived as focus stealing and the focus restored to the last window on
the original desktop
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r-- | src/WorkspaceCmd.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc index bca56c6..6d18b73 100644 --- a/src/WorkspaceCmd.cc +++ b/src/WorkspaceCmd.cc | |||
@@ -383,6 +383,7 @@ JumpToWorkspaceCmd::JumpToWorkspaceCmd(int workspace_num):m_workspace_num(worksp | |||
383 | void JumpToWorkspaceCmd::execute() { | 383 | void JumpToWorkspaceCmd::execute() { |
384 | BScreen *screen = Fluxbox::instance()->mouseScreen(); | 384 | BScreen *screen = Fluxbox::instance()->mouseScreen(); |
385 | if (screen != 0) { | 385 | if (screen != 0) { |
386 | screen->focusControl().stopCyclingFocus(); | ||
386 | int num = screen->numberOfWorkspaces(); | 387 | int num = screen->numberOfWorkspaces(); |
387 | int actual = m_workspace_num; | 388 | int actual = m_workspace_num; |
388 | // we need an extra +1, since it's subtracted in FbCommandFactory | 389 | // we need an extra +1, since it's subtracted in FbCommandFactory |