Fix refresh_focus

This commit is contained in:
Darksome 2023-04-01 20:35:58 +04:00
parent 32805d8ee0
commit a11c3e8f67
5 changed files with 35 additions and 3 deletions

View file

@ -149,6 +149,10 @@ impl CosmicWindow {
self.0.with_program(|p| p.window.clone())
}
pub fn contains_surface(&self, window: &CosmicSurface) -> bool {
self.0.with_program(|p| &p.window == window)
}
pub fn offset(&self) -> Point<i32, Logical> {
let has_ssd = self.0.with_program(|p| p.has_ssd());
if has_ssd {