shell: Set xdg_shell v4 bounds
This commit is contained in:
parent
bc49507353
commit
8f6ad62017
4 changed files with 18 additions and 0 deletions
|
|
@ -90,6 +90,7 @@ impl FloatingLayout {
|
|||
|
||||
let layers = layer_map_for_output(&output);
|
||||
let geometry = layers.non_exclusive_zone();
|
||||
mapped.set_bounds(geometry.size);
|
||||
let last_geometry = mapped.last_geometry.lock().unwrap().clone();
|
||||
|
||||
if let Some(size) = last_geometry.map(|g| g.size) {
|
||||
|
|
|
|||
|
|
@ -322,6 +322,7 @@ impl TilingLayout {
|
|||
) {
|
||||
let output = seat.active_output();
|
||||
window.output_enter(&output, window.bbox());
|
||||
window.set_bounds(output.geometry().size);
|
||||
self.map_internal(window, &output, Some(focus_stack));
|
||||
self.refresh();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue