diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-09-04 20:54:11 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-09-04 20:54:11 +0300 |
| commit | 5460c792bd4bde8f03e68446b6bb053501e368bb (patch) | |
| tree | d5793fce2af2fcfba419d0dcb3dc119820e013e0 /src/niri.rs | |
| parent | e5ecd27bbeb79f004bdadece9cdc5c29600ca709 (diff) | |
| download | niri-5460c792bd4bde8f03e68446b6bb053501e368bb.tar.gz niri-5460c792bd4bde8f03e68446b6bb053501e368bb.tar.bz2 niri-5460c792bd4bde8f03e68446b6bb053501e368bb.zip | |
Fix missing KeyboardLayoutSwitched event on XKB switch
Diffstat (limited to 'src/niri.rs')
| -rw-r--r-- | src/niri.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/niri.rs b/src/niri.rs index b2e3f02d..e7e23789 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -543,6 +543,7 @@ impl State { self.niri.refresh_window_rules(); self.refresh_ipc_outputs(); self.ipc_refresh_layout(); + self.ipc_refresh_keyboard_layout_index(); #[cfg(feature = "xdp-gnome-screencast")] self.niri.refresh_mapped_cast_outputs(); @@ -911,10 +912,6 @@ impl State { keyboard.with_xkb_state(self, |mut context| { context.set_layout(new_layout); }); - - if let Some(server) = &self.niri.ipc_server { - server.keyboard_layout_switched(new_layout.0 as u8); - } } } |
