From 856292982cf78736d5cf03b989a8781b6aa0a84a Mon Sep 17 00:00:00 2001 From: Leonhard Kargl Date: Fri, 16 Aug 2024 12:13:22 +0200 Subject: [PATCH] Fix crash on X11 --- src/PanelWindow.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PanelWindow.vala b/src/PanelWindow.vala index cd6669fb..5aaf5b65 100644 --- a/src/PanelWindow.vala +++ b/src/PanelWindow.vala @@ -131,7 +131,9 @@ public class Wingpanel.PanelWindow : Gtk.Window { this.expanded = true; this.set_size_request (monitor_width, monitor_height); - desktop_panel.focus (); + if (desktop_panel != null) { + desktop_panel.focus (); + } } else if (!expand) { Services.BackgroundManager.get_default ().restore_window ();