Revert "layout: Exclude hidden actors from struts"
The changes violated too many assumptions on the mutter
side. And even if those were addressed, changing the
work area when a window enters/leaves fullscreen isn't
great, because it will force an expensive relayout on
all other windows.
This reverts commit cd1102ff30
.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2223>
This commit is contained in:
parent
27df8c2cd0
commit
cd33f5d907
@ -998,9 +998,6 @@ var LayoutManager = GObject.registerClass({
|
|||||||
|
|
||||||
for (i = 0; i < this._trackedActors.length; i++) {
|
for (i = 0; i < this._trackedActors.length; i++) {
|
||||||
let actorData = this._trackedActors[i];
|
let actorData = this._trackedActors[i];
|
||||||
if (!actorData.actor.get_paint_visibility())
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!(actorData.affectsInputRegion && wantsInputRegion) && !actorData.affectsStruts)
|
if (!(actorData.affectsInputRegion && wantsInputRegion) && !actorData.affectsStruts)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -1011,7 +1008,7 @@ var LayoutManager = GObject.registerClass({
|
|||||||
w = Math.round(w);
|
w = Math.round(w);
|
||||||
h = Math.round(h);
|
h = Math.round(h);
|
||||||
|
|
||||||
if (actorData.affectsInputRegion && wantsInputRegion)
|
if (actorData.affectsInputRegion && wantsInputRegion && actorData.actor.get_paint_visibility())
|
||||||
rects.push(new Meta.Rectangle({ x, y, width: w, height: h }));
|
rects.push(new Meta.Rectangle({ x, y, width: w, height: h }));
|
||||||
|
|
||||||
let monitor = null;
|
let monitor = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user