From 37a6a018033706e836ca851da2836ed888747235 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 6 Aug 2026 15:25:04 +0545 Subject: [PATCH] fix(weather): queue toplevel resize after label update Wrapped location reflow never reaches the layer-shell toplevel through Gtk.Fixed, so the card stays at "Loading..." height and clips the second line of a wrapped location on first init. Queue the toplevel after updating labels so the taller allocation is applied. --- src/window/desktop/weather.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/window/desktop/weather.py b/src/window/desktop/weather.py index a9593eb..0117e4a 100644 --- a/src/window/desktop/weather.py +++ b/src/window/desktop/weather.py @@ -118,6 +118,10 @@ class DesktopWeatherWidget(Box): self.city.set_label("Error") self.condition.set_label("UI Error") + toplevel = self.get_toplevel() + if toplevel is not None and toplevel is not self: + toplevel.queue_resize() + def destroy(self): try: self._service.disconnect_by_func(self._on_service_update)