Skip to content

Commit 90ac710

Browse files
authored
Fix crash on X11 (#565)
1 parent 92edecc commit 90ac710

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PanelWindow.vala

+3-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ public class Wingpanel.PanelWindow : Gtk.Window {
131131
this.expanded = true;
132132
this.set_size_request (monitor_width, monitor_height);
133133

134-
desktop_panel.focus ();
134+
if (desktop_panel != null) {
135+
desktop_panel.focus ();
136+
}
135137
} else if (!expand) {
136138
Services.BackgroundManager.get_default ().restore_window ();
137139

0 commit comments

Comments
 (0)