diff options
| author | Andrea Azzarone <azzaronea@gmail.com> | 2012-09-17 12:18:55 +0200 | 
|---|---|---|
| committer | Andrea Azzarone <azzaronea@gmail.com> | 2012-09-17 12:18:55 +0200 | 
| commit | b725eafc9f0b4a739bcfe887a4c958431695e636 (patch) | |
| tree | b073c04992bf0c01ebbce7cf3a73e0632ae6234f /plugins/unityshell/src | |
| parent | e9865e588f65d80675221ce5dcbb2816200d3601 (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.cpp | 7 | 
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;  | 
