From: Dana Jansens Date: Tue, 13 Aug 2002 21:25:41 +0000 (+0000) Subject: dont let windows get initially mapped when they arent on the current workspace X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ef66d63b422bd7dc6de9d4dd28b7f7e7c0624e05;p=chaz%2Fopenbox dont let windows get initially mapped when they arent on the current workspace --- diff --git a/src/Window.cc b/src/Window.cc index c58e0b3d..60182ce9 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -2611,6 +2611,13 @@ void BlackboxWindow::mapRequestEvent(const XMapRequestEvent *re) { client.window); #endif // DEBUG + /* + Even thought 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; + switch (current_state) { case IconicState: iconify();