xwayland: Add initial support

This commit is contained in:
Victoria Brekenfeld 2023-01-18 20:23:41 +01:00
parent 78ffe3a93d
commit 1d28574088
23 changed files with 781 additions and 185 deletions

View file

@ -29,6 +29,7 @@ use smithay::{
compositor::{with_surface_tree_downward, TraversalAction},
seat::WaylandFocus,
},
xwayland::{xwm::X11Relatable, X11Surface},
};
use std::{
collections::HashMap,
@ -483,6 +484,15 @@ impl SpaceElement for CosmicMapped {
}
}
impl X11Relatable for CosmicMapped {
fn is_window(&self, window: &X11Surface) -> bool {
match self.active_window() {
CosmicSurface::X11(surface) => &surface == window,
_ => false,
}
}
}
impl KeyboardTarget<State> for CosmicMapped {
fn enter(
&self,