Skip to content

Commit 10720c0

Browse files
committed
PanelWindow: Don't use custom size for positioning, correct y for bottom panels
1 parent 2a98017 commit 10720c0

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
@@ -75,6 +75,11 @@ public class Gala.PanelWindow : Object {
7575

7676
if (height > 0) {
7777
window_rect.height = height;
78+
79+
if (anchor == BOTTOM) {
80+
var geom = wm.get_display ().get_monitor_geometry (window.get_monitor ());
81+
window_rect.y = geom.y + geom.height - height;
82+
}
7883
}
7984

8085
return window_rect;
@@ -98,7 +103,7 @@ public class Gala.PanelWindow : Object {
98103
private void position_window () {
99104
var display = wm.get_display ();
100105
var monitor_geom = display.get_monitor_geometry (display.get_primary_monitor ());
101-
var window_rect = get_custom_window_rect ();
106+
var window_rect = window.get_frame_rect ();
102107

103108
switch (anchor) {
104109
case TOP:

0 commit comments

Comments
 (0)