summaryrefslogtreecommitdiff
path: root/plugins/unityshell/src
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2012-09-17 12:18:55 +0200
committerAndrea Azzarone <azzaronea@gmail.com>2012-09-17 12:18:55 +0200
commitb725eafc9f0b4a739bcfe887a4c958431695e636 (patch)
treeb073c04992bf0c01ebbce7cf3a73e0632ae6234f /plugins/unityshell/src
parente9865e588f65d80675221ce5dcbb2816200d3601 (diff)
Show alt+tab in the monitor with mouse.
(bzr r2697.1.1)
Diffstat (limited to 'plugins/unityshell/src')
-rw-r--r--plugins/unityshell/src/unityshell.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index f00fd11bd..e8a49bb79 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -1777,9 +1777,10 @@ void UnityScreen::SetUpAndShowSwitcher(switcher::ShowMode show_mode)
{
// maybe check launcher position/hide state?
- WindowManager *wm = WindowManager::Default();
- int monitor = wm->GetWindowMonitor(wm->GetActiveWindow());
- nux::Geometry monitor_geo = UScreen::GetDefault()->GetMonitorGeometry(monitor);
+ auto uscreen = UScreen::GetDefault();
+ int monitor = uscreen->GetMonitorWithMouse();
+ auto monitor_geo = uscreen->GetMonitorGeometry(monitor);
+
monitor_geo.x += 100;
monitor_geo.y += 100;
monitor_geo.width -= 200;