utils: New geometry spaces local/global

This commit is contained in:
Victoria Brekenfeld 2023-10-25 19:24:51 +02:00
parent c38a236ffa
commit 42aaafe586
18 changed files with 516 additions and 300 deletions

View file

@ -3,7 +3,7 @@ use crate::{
state::State,
utils::{
iced::{IcedElement, Program},
prelude::SeatExt,
prelude::*,
},
wayland::handlers::screencopy::ScreencopySessions,
};
@ -132,7 +132,7 @@ impl CosmicWindow {
))
}
pub fn set_geometry(&self, geo: Rectangle<i32, Logical>) {
pub fn set_geometry(&self, geo: Rectangle<i32, Global>) {
self.0.with_program(|p| {
let loc = (
geo.loc.x,