Skip to content

Commit

Permalink
Clean up the offset_notification method
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-janssen committed Mar 29, 2023
1 parent 0fb37cd commit 7bc16d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Services/PopoverManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,9 @@ public class Wingpanel.Services.PopoverManager : Object {
private void offset_notifications(Wingpanel.Widgets.IndicatorPopover? popover = null) {
int offset = 0;
if (popover != null) {
int minimum_height, natural_height;
popover.get_preferred_height (out minimum_height, out natural_height);
offset = natural_height;
popover.get_preferred_height (null, out offset);
}

try {
wm.offset_notifications (offset);
} catch (Error e) {
Expand Down

0 comments on commit 7bc16d8

Please sign in to comment.