From 7bc16d83da21b1a12ae32217fb1816b42371ecc4 Mon Sep 17 00:00:00 2001 From: Stan Janssen Date: Wed, 29 Mar 2023 11:56:58 +0200 Subject: [PATCH] Clean up the offset_notification method --- src/Services/PopoverManager.vala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Services/PopoverManager.vala b/src/Services/PopoverManager.vala index 4d916dcb..cd5afc14 100644 --- a/src/Services/PopoverManager.vala +++ b/src/Services/PopoverManager.vala @@ -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) {