From c2d21bde29bef29e3690177c952a3b998992d542 Mon Sep 17 00:00:00 2001 From: Andrea Azzarone Date: Thu, 21 Feb 2013 17:43:01 +0100 Subject: Minor fix. (bzr r3164.1.4) --- plugins/unityshell/src/unityshell.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index d8dfbe499..499836f59 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -2516,18 +2516,16 @@ bool UnityWindow::glPaint(const GLWindowPaintAttrib& attrib, PAINT_WINDOW_NO_CORE_INSTANCE_MASK; if (window->isMapped() && - !window->overrideRedirect() && - window->managed() && window->defaultViewport() == uScreen->screen->vp()) { int monitor = window->outputDevice(); auto it = uScreen->windows_for_monitor_.find(monitor); - if (it == end(uScreen->windows_for_monitor_)) - (it->second) = 1; - else + if (it != end(uScreen->windows_for_monitor_)) ++(it->second); + else + uScreen->windows_for_monitor_[monitor] = 1; if (!(mask & nonOcclusionBits) && (window->state() & CompWindowStateFullscreenMask) && -- cgit v1.2.3