azul
azul copied to clipboard
Window doesn't show in openSUSE Leap 15 / GNOME 3
Description
I installed libexpat-devel, libfreetype6 and fontconfig with zypper.
Cloned this repo and executed:
$ cargo run --example calculator
No errors printed, I see "Running target/debug/examples/calculator
".
No window spawned.
If I switch windows with alt+tab, I see icon of "unknown" window, but the window itself is not visible to user. Unfortunately, screenshot doesn't capture system window switcher, so I can't show it.
Version / OS
openSUSE Leap 15.0 GNOME 3
Tested with both nightly and stable: rustc 1.35.0-nightly (c82834e2b 2019-03-17) rustc 1.33.0 (2aa4c46cf 2019-02-28)
- azul version: last commit (809cc3cf4a2ca163d6826ee017be72d1f1be8d9b)
Are you on wayland or X11?
It appeared to be Wayland: $ loginctl show-session c1 -p Type Type=wayland
I know what the issue is (the window is hidden until the first paint, to prevent flickering, but for some reason the code for actually showing the window never executes), but I'm trying to figure out whether this is a wayland-specific thing.
You can try two things:
- Start the example with
WINIT_UNIX_BACKEND=x11
to force the window to use X11 instead of Wayland, i.e.WINIT_UNIX_BACKEND=x11 cargo run --example calculator
. - Check out the
positioned_words
branch and see if the problem is still there or if it has been fixed already (there might be different bugs, but at least the window should show.
Start the example with WINIT_UNIX_BACKEND=x11 to force the window to use X11 instead of Wayland, i.e. WINIT_UNIX_BACKEND=x11 cargo run --example calculator.
This works, thanks!
@kirillt This should technically be fixed now, but I didn't have the time to verify that it's fixed, could you try again (without the BACKEND=x11 trick)?
@fschutt Unfortunately, it seems the same. Works with WINIT_UNIX_BACKEND=x11, doesn't work without it.
On Manjaro, setting WINIT_UNIX_BACKEND=x11 does not work.