diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-17 09:21:03 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-03-18 19:31:11 +0400 |
| commit | 118773e17d689b95b4eefd105e3878fd3fe1aab1 (patch) | |
| tree | feb5578035d4648a6794ddd194d073a73bbe1549 /src/protocols | |
| parent | 741bee461cbdaf0236eaa55dc86dc84b01613128 (diff) | |
| download | niri-118773e17d689b95b4eefd105e3878fd3fe1aab1.tar.gz niri-118773e17d689b95b4eefd105e3878fd3fe1aab1.tar.bz2 niri-118773e17d689b95b4eefd105e3878fd3fe1aab1.zip | |
Track keyboard focus component
Diffstat (limited to 'src/protocols')
| -rw-r--r-- | src/protocols/foreign_toplevel.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/foreign_toplevel.rs b/src/protocols/foreign_toplevel.rs index 5366da1a..67dff830 100644 --- a/src/protocols/foreign_toplevel.rs +++ b/src/protocols/foreign_toplevel.rs @@ -106,7 +106,7 @@ pub fn refresh(state: &mut State) { .lock() .unwrap(); - if state.niri.keyboard_focus.as_ref() == Some(wl_surface) { + if state.niri.keyboard_focus.surface() == Some(wl_surface) { focused = Some((window.clone(), output.cloned())); } else { refresh_toplevel(protocol_state, wl_surface, &role, output, false); |
