From 24a35e50228485107aa41a9e08feab2a4cbe66c3 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Tue, 11 Aug 2020 19:07:49 -0700 Subject: [PATCH] gdk_display_get_default() is now called directly from inside of gdk_wayland_display_get_wl_display() --- src/wofi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wofi.c b/src/wofi.c index 7c4b0b8..24f0d94 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -1644,9 +1644,8 @@ void wofi_init(struct map* _config) { gtk_window_set_decorated(GTK_WINDOW(window), FALSE); if(!normal_window) { - GdkDisplay* disp = gdk_display_get_default(); wl_list_init(&outputs); - wl = gdk_wayland_display_get_wl_display(disp); + wl = gdk_wayland_display_get_wl_display(gdk_display_get_default()); if(wl == NULL) { fprintf(stderr, "Failed to connect to wayland compositor\n");