Skip to content

Commit

Permalink
Fix crash on KDE & Wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaelers committed Jan 15, 2024
1 parent c45f4c1 commit f67805a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/utils/src/Platform-unix.cc
Expand Up @@ -53,7 +53,7 @@ Platform::get_default_display()

# if defined(HAVE_GTK)
GdkDisplay *display = gdk_display_get_default();
if (display != nullptr)
if (display != nullptr && GDK_IS_X11_DISPLAY(display))
{
xdisplay = gdk_x11_display_get_xdisplay(display);
}
Expand Down

0 comments on commit f67805a

Please sign in to comment.