diff --git a/js/ui/layout.js b/js/ui/layout.js index 70ece6cab..e3c5f4975 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -974,6 +974,9 @@ var LayoutManager = GObject.registerClass({ for (i = 0; i < this._trackedActors.length; i++) { let actorData = this._trackedActors[i]; + if (!actorData.actor.get_paint_visibility()) + continue; + if (!(actorData.affectsInputRegion && wantsInputRegion) && !actorData.affectsStruts) continue; @@ -984,7 +987,7 @@ var LayoutManager = GObject.registerClass({ w = Math.round(w); h = Math.round(h); - if (actorData.affectsInputRegion && wantsInputRegion && actorData.actor.get_paint_visibility()) + if (actorData.affectsInputRegion && wantsInputRegion) rects.push(new Meta.Rectangle({ x, y, width: w, height: h })); let monitor = null;