summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2016-08-17 16:20:05 +0200
committerAndrea Azzarone <azzaronea@gmail.com>2016-08-17 16:20:05 +0200
commitd335b6806f73d3ef105d6cd3982dd5235e734434 (patch)
tree2fa1dcbbf220b29035cf372242a8985fd87afd81 /unity-shared
parent5f9f23dcd53ff66e33c149751c1ed8df2f1a765e (diff)
Use compiz::Window::serverNext instead of compiz::Window::next in IsWindowObscured as the latter can be outdated just after scale/spread terminates.
Fixes LP: #1614116 (bzr r4168.3.1)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/PluginAdapter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unity-shared/PluginAdapter.cpp b/unity-shared/PluginAdapter.cpp
index e439ca332..324bf54b1 100644
--- a/unity-shared/PluginAdapter.cpp
+++ b/unity-shared/PluginAdapter.cpp
@@ -608,7 +608,7 @@ bool PluginAdapter::IsWindowObscured(Window window_id) const
CompPoint window_vp = window->defaultViewport();
// Check if any windows above this one are blocking it
- for (CompWindow* sibling = window->next; sibling != NULL; sibling = sibling->next)
+ for (CompWindow* sibling = window->serverNext; sibling != NULL; sibling = sibling->serverNext)
{
if (sibling->defaultViewport() == window_vp
&& !sibling->minimized()