layer shell upgrade gtkrs
This commit is contained in:
parent
57263e77c7
commit
25806a6272
1 changed files with 2 additions and 2 deletions
|
|
@ -31,14 +31,14 @@ fn wayland_create(app: &PanelApp, monitor: &gdk4_wayland::WaylandMonitor) {
|
||||||
let window = LayerShellWindow::new(Some(monitor), Layer::Top, "");
|
let window = LayerShellWindow::new(Some(monitor), Layer::Top, "");
|
||||||
|
|
||||||
window.connect_realize(|window| {
|
window.connect_realize(|window| {
|
||||||
let surface = window.surface().unwrap();
|
let surface = window.surface();
|
||||||
surface.connect_layout(clone!(@weak window => move |_surface, _width, height| {
|
surface.connect_layout(clone!(@weak window => move |_surface, _width, height| {
|
||||||
window.set_exclusive_zone(height);
|
window.set_exclusive_zone(height);
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
window.set_child(Some(&window_box(app)));
|
window.set_child(Some(&window_box(app)));
|
||||||
window.set_size_request(monitor.geometry().width, 0);
|
window.set_size_request(monitor.geometry().width(), 0);
|
||||||
window.set_anchor(if BOTTOM { Anchor::Bottom } else { Anchor::Top });
|
window.set_anchor(if BOTTOM { Anchor::Bottom } else { Anchor::Top });
|
||||||
window.show();
|
window.show();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue