@ -626,12 +626,14 @@ static void handle_modifier_event(struct sway_keyboard *keyboard) {
determine_bar_visibility ( modifiers ) ;
determine_bar_visibility ( modifiers ) ;
}
}
if ( wlr_device - > keyboard - > modifiers . group ! = keyboard - > effective_layout & &
if ( wlr_device - > keyboard - > modifiers . group ! = keyboard - > effective_layout ) {
! wlr_keyboard_group_from_wlr_keyboard ( wlr_device - > keyboard ) ) {
keyboard - > effective_layout = wlr_device - > keyboard - > modifiers . group ;
keyboard - > effective_layout = wlr_device - > keyboard - > modifiers . group ;
if ( ! wlr_keyboard_group_from_wlr_keyboard ( wlr_device - > keyboard ) ) {
ipc_event_input ( " xkb_layout " , keyboard - > seat_device - > input_device ) ;
ipc_event_input ( " xkb_layout " , keyboard - > seat_device - > input_device ) ;
}
}
}
}
}
static void handle_keyboard_modifiers ( struct wl_listener * listener ,
static void handle_keyboard_modifiers ( struct wl_listener * listener ,
void * data ) {
void * data ) {