backends: Handle numlock saving/restoring directly in backends
Simplify the handling of numlock state, so it can be entirely handled within the input thread. Since the saving/restoring is triggered inside each backend code, there's no need anymore for meta_backend_set_numlock(). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
This commit is contained in:

committed by
Marge Bot

parent
23f95348fd
commit
f7fbd6ea6f
@ -612,20 +612,6 @@ meta_seat_native_get_keyboard_layout_index (MetaSeatNative *seat)
|
||||
return seat->xkb_layout_index;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_seat_native_set_keyboard_numlock: (skip)
|
||||
* @seat: the #ClutterSeat created by the evdev backend
|
||||
* @numlock_set: TRUE to set NumLock ON, FALSE otherwise.
|
||||
*
|
||||
* Sets the NumLock state on the backend's #xkb_state .
|
||||
*/
|
||||
void
|
||||
meta_seat_native_set_keyboard_numlock (MetaSeatNative *seat,
|
||||
gboolean numlock_state)
|
||||
{
|
||||
meta_seat_impl_set_keyboard_numlock (seat->impl, numlock_state);
|
||||
}
|
||||
|
||||
MetaBarrierManagerNative *
|
||||
meta_seat_native_get_barrier_manager (MetaSeatNative *seat)
|
||||
{
|
||||
|
Reference in New Issue
Block a user