summaryrefslogtreecommitdiff
path: root/plugins/switcher/src/switcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/switcher/src/switcher.cpp')
-rw-r--r--plugins/switcher/src/switcher.cpp21
1 files changed, 2 insertions, 19 deletions
diff --git a/plugins/switcher/src/switcher.cpp b/plugins/switcher/src/switcher.cpp
index 71eb54e..d8b09f2 100644
--- a/plugins/switcher/src/switcher.cpp
+++ b/plugins/switcher/src/switcher.cpp
@@ -303,13 +303,7 @@ SwitchScreen::initiate (SwitchWindowSelection selection,
if (popupWindow && showPopup)
{
- CompWindow *w;
-
- w = screen->findWindow (popupWindow);
- if (w && (w->state () & CompWindowStateHiddenMask))
- w->show ();
- else
- XMapWindow (screen->dpy (), popupWindow);
+ XMapWindow (screen->dpy (), popupWindow);
setSelectedWindowHint ();
}
@@ -357,22 +351,11 @@ switchTerminate (CompAction *action,
SWITCH_SCREEN (screen);
-
if (ss->grabIndex)
{
- CompWindow *w;
-
if (ss->popupWindow)
{
- w = screen->findWindow (ss->popupWindow);
- if (w && w->managed () && w->mapNum ())
- {
- w->hide ();
- }
- else
- {
- XUnmapWindow (screen->dpy (), ss->popupWindow);
- }
+ XUnmapWindow (screen->dpy (), ss->popupWindow);
}
ss->switching = false;