From bae656b33f34b7fabb6904bc8fb4b102eccd7dd5 Mon Sep 17 00:00:00 2001 From: William Wold Date: Fri, 2 Oct 2020 11:00:12 -0700 Subject: Don't crash if shell doesn't support foreign toplevel --- applets/wncklet/wayland-backend.c | 1 + 1 file changed, 1 insertion(+) diff --git a/applets/wncklet/wayland-backend.c b/applets/wncklet/wayland-backend.c index d51fb7d0..16a35f34 100644 --- a/applets/wncklet/wayland-backend.c +++ b/applets/wncklet/wayland-backend.c @@ -361,6 +361,7 @@ void wayland_tasklist_set_orientation (GtkWidget* tasklist_widget, GtkOrientation orient) { TasklistManager *tasklist = tasklist_widget_get_tasklist (tasklist_widget); + g_return_if_fail(tasklist); gtk_orientable_set_orientation (GTK_ORIENTABLE (tasklist->list), orient); gtk_orientable_set_orientation (GTK_ORIENTABLE (tasklist->outer_box), orient); } -- cgit v1.2.1