summaryrefslogtreecommitdiff
path: root/plugins/unityshell/src
diff options
Diffstat (limited to 'plugins/unityshell/src')
-rw-r--r--plugins/unityshell/src/unityshell.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 87e297d44..7bbbe7d88 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -3682,8 +3682,8 @@ void UnityWindow::scalePaintDecoration(GLWindowPaintAttrib const& attrib,
void UnityWindow::OnInitiateSpreed()
{
- auto const windows = screen->windows();
- if (std::find(windows.begin(), windows.end(), window) == windows.end())
+ auto const& windows = ScaleScreen::get(screen)->getWindows();
+ if (std::find(windows.begin(), windows.end(), ScaleWindow::get(window)) == windows.end())
return;
close_icon_state_ = panel::WindowState::NORMAL;
@@ -3698,8 +3698,8 @@ void UnityWindow::OnInitiateSpreed()
void UnityWindow::OnTerminateSpreed()
{
- auto const windows = screen->windows();
- if (std::find(windows.begin(), windows.end(), window) == windows.end())
+ auto const& windows = ScaleScreen::get(screen)->getWindows();
+ if (std::find(windows.begin(), windows.end(), ScaleWindow::get(window)) == windows.end())
return;
WindowManager *wm = WindowManager::Default();