Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/gui/gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
#ifdef GDK_WINDOWING_WAYLAND
#include <gdk/gdkwayland.h>
#endif
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#include <gtk/gtk.h>
#include <math.h>
#include <stdlib.h>
Expand Down Expand Up @@ -995,7 +998,7 @@ dt_gui_session_type_t dt_gui_get_session_type(void)
: DT_GUI_SESSION_X11;
#elif defined(GDK_WINDOWING_X11)
GdkDisplay* disp = gdk_display_get_default();
retun G_TYPE_CHECK_INSTANCE_TYPE(disp, GDK_TYPE_X11_DISPLAY)
return G_TYPE_CHECK_INSTANCE_TYPE(disp, GDK_TYPE_X11_DISPLAY)
? DT_GUI_SESSION_X11
: DT_GUI_SESSION_WAYLAND;
#else
Expand Down
Loading