summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/PluginAdapter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/unity-shared/PluginAdapter.cpp b/unity-shared/PluginAdapter.cpp
index 1fddfe74b..10573db86 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;