From 4af143c380f25a102f018f9ddf52f905d92dbab7 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sun, 2 Jun 2024 01:20:00 +0200 Subject: [PATCH] audgui: Use X11/XWayland by default --- src/libaudgui/init.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libaudgui/init.cc b/src/libaudgui/init.cc index 04efe450d..ddf96d619 100644 --- a/src/libaudgui/init.cc +++ b/src/libaudgui/init.cc @@ -344,6 +344,13 @@ EXPORT void audgui_init () if (init_count ++) return; +#if defined(GDK_WINDOWING_WAYLAND) && defined(GDK_WINDOWING_X11) + // Use X11/XWayland by default, but allow to overwrite it. + // Especially the Winamp interface is not usable yet on Wayland + // due to limitations regarding application-side window positioning. + g_setenv ("GDK_BACKEND", "x11", false); +#endif + static char app_name[] = "audacious"; static char * app_args[] = {app_name, nullptr};