ControlsManagerLayout: Consider workarea height for the available space
We always consider the whole workarea space to be available when computing the controls manager layout, however this may not be the truth when using extensions such as Window List which are reducing the work area size. So take care of it, reducing the box height. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4330 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1892>
This commit is contained in:
parent
f164e08688
commit
2b074882f4
@ -135,6 +135,7 @@ class ControlsManagerLayout extends Clutter.BoxLayout {
|
|||||||
const workArea = Main.layoutManager.getWorkAreaForMonitor(monitor.index);
|
const workArea = Main.layoutManager.getWorkAreaForMonitor(monitor.index);
|
||||||
const startY = workArea.y - monitor.y;
|
const startY = workArea.y - monitor.y;
|
||||||
box.y1 += startY;
|
box.y1 += startY;
|
||||||
|
box.y2 -= (monitor.height - workArea.height) - startY;
|
||||||
const [width, height] = box.get_size();
|
const [width, height] = box.get_size();
|
||||||
let availableHeight = height;
|
let availableHeight = height;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user