slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.56k stars 604 forks source link

Wayland: Initial buffer rendered out of the window frame #3036

Closed jturcotte closed 1 year ago

jturcotte commented 1 year ago

I'm getting this weird issue after upgrading my application from 1.0.3 to 1.1.0, only for the first frame (it snaps back into the window after resizing):

image

This can reproduced with a simple scene with slint-viewer --backend winit-femtovg test.slint

export component MainWindow inherits Window {
    title: "Test";
    background: red;
    width: 800px;
    height: 480px;
}

It happens with femtovg and skia backends but not with the Qt backend.

ogoffart commented 1 year ago

Could be related to https://github.com/slint-ui/slint/issues/1671

jturcotte commented 1 year ago

Ah yes, looks like it.