shell: Don't use output-relative coords for windwo geometry
This commit is contained in:
parent
4940d0823d
commit
0090122ffe
4 changed files with 46 additions and 20 deletions
|
|
@ -238,14 +238,7 @@ impl Workspace {
|
|||
mapped.set_active(window);
|
||||
}
|
||||
|
||||
let size = output
|
||||
.current_mode()
|
||||
.map(|m| m.size)
|
||||
.unwrap_or((0, 0).into())
|
||||
.to_f64()
|
||||
.to_logical(output.current_scale().fractional_scale())
|
||||
.to_i32_round();
|
||||
window.set_geometry(Rectangle::from_loc_and_size((0, 0), size));
|
||||
window.set_geometry(output.geometry());
|
||||
window.send_configure();
|
||||
self.fullscreen.insert(output.clone(), window.clone());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue