Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use X11/XWayland by default #1395

Merged
merged 2 commits into from
Jun 2, 2024

Conversation

radioactiveman
Copy link
Member

More and more distributions use Wayland by default now. Which brings new issues for Audacious, especially with the Winamp interface. Use X11/XWayland by default for now to avoid them.

See also:

@madpilot78: Can you please verify that the x11 GDK backend and xcb Qt platform can be used on FreeBSD? I'm not sure yet if we should apply this for Linux only.

@jlindgren90: Is this implemented properly? I have tested it successfully with a Ubuntu 24.04 VM.

src/libaudgui/init.cc Outdated Show resolved Hide resolved
@jlindgren90
Copy link
Member

LGTM

@madpilot78
Copy link
Contributor

Hi,

Thanks for your work on audacious! Really appreciated!

I've tested your patch and compiled the latest beta with it included on FreeBSD. It works fine on my machine, with Xorg.

I'm unable to test with wayland since I don't have it configured. FreeBSD does support Wayland and people using it report it working fine. The reason I have not migrated is that I use XFCE as a desktop and it only has partial experimental support for Wayland at present (they are working on it though).

As far as I can see it should be fine as is, but if you need me to looks for specific things please ask.

@radioactiveman
Copy link
Member Author

Thanks for the feedback. 👍

I found a more portable check for GTK. This should apply to all GTK 3 versions and systems where the Wayland and X11 backend is enabled.

#if defined(GDK_WINDOWING_WAYLAND) && defined(GDK_WINDOWING_X11)

instead of

#if defined(USE_GTK3) && defined(G_OS_UNIX) && !defined(__APPLE__)

@radioactiveman radioactiveman merged commit 4af143c into audacious-media-player:master Jun 2, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants