diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-08-14 06:26:42 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-08-14 06:26:42 +0000 |
| commit | 74a4bc01a7b272350552f6de14a6a1cf2c344e22 (patch) | |
| tree | 13f3361f87b8887bff56967b3c58cb6bf3244bab /src/Window.cc | |
| parent | 4bebd476c30492f26421392a4d6dd0a20289aaa7 (diff) | |
properly watch for windows on other workspaces when mapping.
Diffstat (limited to 'src/Window.cc')
| -rw-r--r-- | src/Window.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Window.cc b/src/Window.cc index dd5f3b71..f18d4dea 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -2612,11 +2612,12 @@ void BlackboxWindow::mapRequestEvent(const XMapRequestEvent *re) { #endif // DEBUG /* - Even thought the window wants to be shown, if it is not on the current + Even though the window wants to be shown, if it is not on the current workspace, then it isn't going to be shown right now. */ - if (blackbox_attrib.workspace != screen->getCurrentWorkspaceID()) - current_state = WithdrawnState; + if (blackbox_attrib.workspace != screen->getCurrentWorkspaceID() && + blackbox_attrib.workspace < screen->getWorkspaceCount()) + if (current_state == NormalState) current_state = WithdrawnState; switch (current_state) { case IconicState: |
