mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
layout: Exclude hidden actors from struts
Currently we only exclude hidden actors from the input region, but not from struts. This is an oversight that went unnoticed until now, probably because we didn't consider the work area in the overview until recently. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4569 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1963>
This commit is contained in:
parent
2ee323e37e
commit
cd1102ff30
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue