fix: ensure X window focus on unmap/map

This commit is contained in:
RipleyTom 2026-07-23 19:28:32 +02:00 • committed by Victoria Brekenfeld
parent 44de3063ee
commit 5ce21fb4f3
3 changed files with 25 additions and 2 deletions

View file

@ -326,7 +326,7 @@ impl KeyboardFocusTarget {
}
}
fn x11_surface(&self) -> Option<X11Surface> {
pub fn x11_surface(&self) -> Option<X11Surface> {
match self {
KeyboardFocusTarget::Element(mapped) => mapped.active_window().x11_surface().cloned(),
KeyboardFocusTarget::Fullscreen(surface) => surface.x11_surface().cloned(),