fix: ensure X window focus on unmap/map
This commit is contained in:
parent
44de3063ee
commit
5ce21fb4f3
3 changed files with 25 additions and 2 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue