summaryrefslogtreecommitdiff
path: root/plugins/switcher/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/switcher/src')
-rw-r--r--plugins/switcher/src/switcher.cpp8
-rw-r--r--plugins/switcher/src/switcher.h1
2 files changed, 2 insertions, 7 deletions
diff --git a/plugins/switcher/src/switcher.cpp b/plugins/switcher/src/switcher.cpp
index e645d40..647c879 100644
--- a/plugins/switcher/src/switcher.cpp
+++ b/plugins/switcher/src/switcher.cpp
@@ -481,16 +481,12 @@ SwitchScreen::initiate (SwitchWindowSelection selection,
{
CompWindow *w;
-
w = screen->findWindow (popupWindow);
if (w && (w->state () & CompWindowStateHiddenMask))
- {
w->unminimize ();
- }
else
- {
XMapWindow (screen->dpy (), popupWindow);
- }
+
setSelectedWindowHint ();
}
@@ -669,7 +665,7 @@ SwitchScreen::windowRemove (Window id)
it++;
if (it == windows.end ())
selected = windows.front ()->id ();
- else
+ else
selected = (*it)->id ();
it--;
}
diff --git a/plugins/switcher/src/switcher.h b/plugins/switcher/src/switcher.h
index cb895a4..f9a53e6 100644
--- a/plugins/switcher/src/switcher.h
+++ b/plugins/switcher/src/switcher.h
@@ -60,7 +60,6 @@ class SwitchScreen :
public SwitcherOptions
{
public:
-
SwitchScreen (CompScreen *screen);
~SwitchScreen ();