diff options
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r-- | src/WorkspaceCmd.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc index a642008..6422c3f 100644 --- a/src/WorkspaceCmd.cc +++ b/src/WorkspaceCmd.cc | |||
@@ -602,6 +602,7 @@ void ShowDesktopCmd::execute() { | |||
602 | it_end = wins.end(); | 602 | it_end = wins.end(); |
603 | unsigned int space = screen->currentWorkspaceID(); | 603 | unsigned int space = screen->currentWorkspaceID(); |
604 | unsigned int count = 0; | 604 | unsigned int count = 0; |
605 | XGrabServer(Fluxbox::instance()->display()); | ||
605 | for (; it != it_end; ++it) { | 606 | for (; it != it_end; ++it) { |
606 | if (!(*it)->fbwindow()->isIconic() && ((*it)->fbwindow()->isStuck() || | 607 | if (!(*it)->fbwindow()->isIconic() && ((*it)->fbwindow()->isStuck() || |
607 | (*it)->fbwindow()->workspaceNumber() == space) && | 608 | (*it)->fbwindow()->workspaceNumber() == space) && |
@@ -621,6 +622,7 @@ void ShowDesktopCmd::execute() { | |||
621 | } | 622 | } |
622 | } else | 623 | } else |
623 | FocusControl::revertFocus(*screen); | 624 | FocusControl::revertFocus(*screen); |
625 | XUngrabServer(Fluxbox::instance()->display()); | ||
624 | 626 | ||
625 | } | 627 | } |
626 | 628 | ||