summaryrefslogtreecommitdiff
path: root/plugins
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2013-02-21 17:43:01 +0100
committerAndrea Azzarone <azzaronea@gmail.com>2013-02-21 17:43:01 +0100
commitc2d21bde29bef29e3690177c952a3b998992d542 (patch)
tree50ddaaa55452bdcea36a786eeba6f2db4f9c97c8 /plugins
parent2e0e5530297bd0d6b4053e5b266deecd19a7518e (diff)
Minor fix.
(bzr r3164.1.4)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/unityshell/src/unityshell.cpp8
1 files changed, 3 insertions, 5 deletions
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) &&