gdk_display_get_default() is now called directly from inside of gdk_wayland_display_get_wl_display()
This commit is contained in:
parent
09efb27a78
commit
24a35e5022
@ -1644,9 +1644,8 @@ void wofi_init(struct map* _config) {
|
|||||||
gtk_window_set_decorated(GTK_WINDOW(window), FALSE);
|
gtk_window_set_decorated(GTK_WINDOW(window), FALSE);
|
||||||
|
|
||||||
if(!normal_window) {
|
if(!normal_window) {
|
||||||
GdkDisplay* disp = gdk_display_get_default();
|
|
||||||
wl_list_init(&outputs);
|
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) {
|
if(wl == NULL) {
|
||||||
fprintf(stderr, "Failed to connect to wayland compositor\n");
|
fprintf(stderr, "Failed to connect to wayland compositor\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user