Skip to content

Commit 63d06f8

Browse files
leolost2605stsdczeebok
authored
PanelWindow: Don't use custom size for positioning, correct y for bottom panels (#2108)
Co-authored-by: Stanisław <[email protected]> Co-authored-by: Ryan Kornheisl <[email protected]>
1 parent 98f8caf commit 63d06f8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ShellClients/PanelWindow.vala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ public class Gala.PanelWindow : Object {
6969

7070
if (height > 0) {
7171
window_rect.height = height;
72+
73+
if (anchor == BOTTOM) {
74+
var geom = wm.get_display ().get_monitor_geometry (window.get_monitor ());
75+
window_rect.y = geom.y + geom.height - height;
76+
}
7277
}
7378

7479
return window_rect;
@@ -92,7 +97,7 @@ public class Gala.PanelWindow : Object {
9297
private void position_window () {
9398
var display = wm.get_display ();
9499
var monitor_geom = display.get_monitor_geometry (display.get_primary_monitor ());
95-
var window_rect = get_custom_window_rect ();
100+
var window_rect = window.get_frame_rect ();
96101

97102
switch (anchor) {
98103
case TOP:

0 commit comments

Comments
 (0)