Skip to content

Commit

Permalink
audgui: Use X11/XWayland by default
Browse files Browse the repository at this point in the history
  • Loading branch information
radioactiveman committed Jun 2, 2024
1 parent 334a8ef commit 4af143c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libaudgui/init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down

0 comments on commit 4af143c

Please sign in to comment.