gdk_display_get_default() is now called directly from inside of gdk_wayland_display_get_wl_display()

This commit is contained in:
Scoopta 2020-08-11 19:07:49 -07:00
parent 09efb27a78
commit 24a35e5022

View File

@ -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");