On Wayland, commit the window surface after setting the decoration mode

Fixes #2064.
This commit is contained in:
cmeissl 2021-11-14 23:23:54 +01:00 committed by GitHub
parent 387567a917
commit c4df7ad7a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -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)

View file

@ -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