Fill the windows in the examples with a solid color - #2812
Conversation
|
I think this should be merged sooner rather than later. Currently the examples are unusable on Wayland, you can't even activate the window. If users encounters bugs in Neovide, I would sometimes like to have the repeat the bug using one of the Winit examples, but if the examples don't work, that's not possible. @notgull, Could you update to the latest master and also fix the new |
|
That's true, though there's always glutin with window example, which I use as a testing or alacritty branches which I always open to target latest winit dev, since that's what I use myself as a maintainer to test winit API. |
1c3d5a7 to
03d544a
Compare
|
I've rebased on the latest master. So far |
kchibisov
left a comment
There was a problem hiding this comment.
All examples must handle Resize events, otherwise Wayland won't fly.
Probably macOS won't fly as well.
Actually, you do it also busy drawing on Wayland even when you do cc @ids1024 |
|
At this point we might as well do another release of softbuffer, from the current master, instead of having things relying on 0.2. It's a breaking release, and it will probably have another breaking release for other things, but that's not really an issue at this stage. |
That would be nice, given that it's un-usable in the current state on Wayland from what I've seen in this PR. The example on softbuffer master does work fine. |
f6a2a16 to
7ca3974
Compare
|
Now |
|
Could you add memmap2 into deny and open an issue on client-toolkit(I can do this myself if you don't want to)? |
… upstream, ignore) From rust-windowing#2812
… upstream, ignore) From rust-windowing#2812
CHANGELOG.mdif knowledge of this change could be valuable to usersWhen you run the examples for
winit, the contents of the window will be undefined depending on the platform. To the uninformed user, this appears to be a bug in some cases. In the past we've gotten quite a few issues because of this (#2807 comes to mind) that aren't issues at all.This PR fills the windows with a solid gray background in order to make sure that there is something inside of the window.
Before (X11):
After (X11):