Open dustdfg opened 1 week ago
I wonder if this is not a sway bug rather than a Slint issue. My guess is that sway optimizes for fullscreen window and only render then one window. But I might be wrong and the bug may be in winit or in the renderer. What renderer are you using? Did you try if the problem exist with all the renderer? (skia, femtovg, software).
What is your use case? Maybe you can get the same result with a maximized window?
It seems that maximized doesn't have any effect...
And just in case if you say about popup window for my use case. As I understand popup windows doesn't fit because they are bound to my original window. Thought I don't know slint and can't be sure if it should be bound to a main window or not...
fn main() {
let app = MainWindow::new().unwrap();
app.window().set_maximized(true);
app.run().unwrap();
}
slint::slint! {
export component MainWindow inherits Window {
background: transparent;
no-frame: true;
popup := PopupWindow {
Rectangle { height:100%; width: 100%; background: yellow; }
x: 0px; y: 0px; height: 500px; width: 100px;
}
TouchArea {
height:100%; width: 100%;
clicked => { popup.show(); }
}
}
}
And I also found two discussion which are about layer shell:
https://github.com/slint-ui/slint/discussions/3119 https://github.com/slint-ui/slint/discussions/1765
If I set
background: transparent
on a tiled window it works good but if I open it in a fullscreen mode, I get black backgroundOS: Debian testing. Sway (Wayland) 1.9 Lang: Rust