Open nyanpasu64 opened 3 years ago
I'm getting corruption and flicker on https://github.com/flutter/samples/tree/master/experimental/desktop_photo_search (which isn't nativeshell) on KWin Wayland, I should probably report it upstream, but installing Flutter on my laptop for further testing will be a headache.
This really looks like a bug outside of flutter / nativeshell. The difference between regular Gtk+ applications and nativeshell is that nativeshell draws the content through OpenGL, while native Gtk (3.0) applications don't. That might explain different behavior.
Are Wayland bugs in-scope or not?
I copied the binary from my desktop to my laptop, which works better with Wayland:
On KWin Wayland, IIRC I get the usual bugs. On GNOME Wayland (Mutter 40.2.1), I get spectacular graphical corruption (similar to what I saw on my Nvidia desktop):
Startup:![startup](https://user-images.githubusercontent.com/913957/123184181-03b72480-d448-11eb-8fa0-16d8c4d5c56b.png)
Note that the title bar is transparent. As soon as you try opening a "Menu & MenuBar" menu, the title bar glitches and moving the window instead results in a "hall of mirrors effect" where the past window contents leave a trail in the title bar, flickering between 2 pages (on Intel) or 3 pages (on Nvidia) of differently-corrupted textures.
Resize:![image](https://user-images.githubusercontent.com/913957/123184414-817b3000-d448-11eb-9e46-679cefce57df.png)
Hovering the UI to make it redraw:![image](https://user-images.githubusercontent.com/913957/123184480-a1aaef00-d448-11eb-9ccf-3aa0904ecb5f.png)
GTK3 file dialog:![image](https://user-images.githubusercontent.com/913957/123184493-a8396680-d448-11eb-91c2-6ae2c5f6e83d.png)
Also menu text is invisible as before.
Note that native GTK3 apps have normal-looking title bars and file dialogs (though text lacks antialiasing due to some fontconfig mixup).
Upstream: