diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-10-23 16:35:16 -0400 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-10-23 16:35:16 -0400 |
| commit | 2f9a4c9b2c81307db547d4ceb75dfde2200fbef5 (patch) | |
| tree | 7ca082b192c3ad4064edccac707c1e0aab710b26 /unity-shared | |
| parent | f74e89389961ebe67a6a38a0ecd780348ba626ec (diff) | |
PluginAdapter: don't consider a window obscured if we're in scale mode
To make things better we should actually check whether the window is in the list of the currently scaled list. Fixes LP: #1384910 (bzr r3884.3.3)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/PluginAdapter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unity-shared/PluginAdapter.cpp b/unity-shared/PluginAdapter.cpp index 140c13384..3852223d0 100644 --- a/unity-shared/PluginAdapter.cpp +++ b/unity-shared/PluginAdapter.cpp @@ -554,9 +554,10 @@ bool PluginAdapter::IsWindowOnCurrentDesktop(Window window_id) const bool PluginAdapter::IsWindowObscured(Window window_id) const { - CompWindow* window = m_Screen->findWindow(window_id); + if (_spread_state) + return false; - if (window) + if (CompWindow* window = m_Screen->findWindow(window_id)) { if (window->inShowDesktopMode()) return true; |
