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

Burger menu doesn't render when using Wayland #470

Open
crabctrl opened this issue Mar 30, 2022 · 2 comments
Open

Burger menu doesn't render when using Wayland #470

crabctrl opened this issue Mar 30, 2022 · 2 comments
Labels

Comments

@crabctrl
Copy link

crabctrl commented Mar 30, 2022

Using Lagrange 1.11.1 + SDL 2.0.16 + Sway with SDL_VIDEODRIVER=wayland, clicking the burger menu does open a window (!!!) but the contents of the window are not rendered, instead just displaying the background colour.

As a side note, upon release of SDL 2.0.22 (which is due to be released very soon), Wayland will be the default video driver rather than X11. This means Wayland will be used even if SDL_VIDEODRIVER is unset.

@skyjake
Copy link
Owner

skyjake commented Mar 31, 2022

Hopefully SDL 2.0.22 + Wayland will behave more like the other windowing systems, but ultimately the solution here is to use an actual GUI toolkit like GTK with "native" menus. Using GLib and GTK may anyway be required to work correctly under Flatpak, for example, and D-Bus is needed for other things, too. (See #282, #245.)

As a workaround, when running under Wayland, the app's popup menu feature can be disabled with a build option (see Known Issues: https://gmi.skyjake.fi/lagrange).

@skyjake
Copy link
Owner

skyjake commented Apr 19, 2022

SDL 2.0.22 (which is due to be released very soon), Wayland will be the default video driver rather than X11.

Looks like Wayland-by-default got postponed due to regressions in various games.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants