Skip to content

Commit

Permalink
PanelWindow: Don't use custom size for positioning, correct y for bot…
Browse files Browse the repository at this point in the history
…tom panels (#2108)

Co-authored-by: Stanisław <[email protected]>
Co-authored-by: Ryan Kornheisl <[email protected]>
  • Loading branch information
3 people authored Nov 12, 2024
1 parent 98f8caf commit 63d06f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ShellClients/PanelWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ public class Gala.PanelWindow : Object {

if (height > 0) {
window_rect.height = height;

if (anchor == BOTTOM) {
var geom = wm.get_display ().get_monitor_geometry (window.get_monitor ());
window_rect.y = geom.y + geom.height - height;
}
}

return window_rect;
Expand All @@ -92,7 +97,7 @@ public class Gala.PanelWindow : Object {
private void position_window () {
var display = wm.get_display ();
var monitor_geom = display.get_monitor_geometry (display.get_primary_monitor ());
var window_rect = get_custom_window_rect ();
var window_rect = window.get_frame_rect ();

switch (anchor) {
case TOP:
Expand Down

0 comments on commit 63d06f8

Please sign in to comment.