mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
On Wayland, commit the window surface after setting the decoration mode
Fixes #2064.
This commit is contained in:
parent
387567a917
commit
c4df7ad7a5
|
@ -21,6 +21,7 @@
|
|||
- **Breaking:** On Android, bump `ndk` and `ndk-glue` to 0.4.
|
||||
- On Windows, increase wait timer resolution for more accurate timing when using `WaitUntil`.
|
||||
- On macOS, fix native file dialogs hanging the event loop.
|
||||
- On Wayland, implement a workaround for wrong configure size when using `xdg_decoration` in `kwin_wayland`
|
||||
|
||||
# 0.25.0 (2021-05-15)
|
||||
|
||||
|
|
|
@ -139,6 +139,12 @@ impl Window {
|
|||
} else {
|
||||
window.set_decorate(Decorations::None);
|
||||
}
|
||||
// Without this commit here at least on kwin 5.23.3 the initial configure
|
||||
// will have a size (1,1), the second configure including the decoration
|
||||
// mode will have the min_size as its size. With this commit the initial
|
||||
// configure will have no size, the application will draw it's content
|
||||
// with the initial size and everything works as expected afterwards.
|
||||
window.surface().commit();
|
||||
|
||||
// Min dimensions.
|
||||
let min_size = attributes
|
||||
|
|
Loading…
Reference in a new issue