[mutter] backends/native: Sync LEDs when adding new device



commit c0164378574b1a243cf21b4abb6c090b56505294
Author: Olivier Fourdan <ofourdan redhat com>
Date:   Mon Jan 4 16:10:51 2021 +0100

    backends/native: Sync LEDs when adding new device
    
    Adding new input devices resets the LED state, make sure to restore it
    to keep the LED and XKB state consistent.
    
    Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1594
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1662>

 src/backends/native/meta-seat-impl.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/backends/native/meta-seat-impl.c b/src/backends/native/meta-seat-impl.c
index a67698ce15..a2ba884b9c 100644
--- a/src/backends/native/meta-seat-impl.c
+++ b/src/backends/native/meta-seat-impl.c
@@ -1633,6 +1633,7 @@ evdev_add_device (MetaSeatImpl           *seat_impl,
   device = meta_input_device_native_new_in_impl (seat_impl, libinput_device);
 
   seat_impl->devices = g_slist_prepend (seat_impl->devices, device);
+  meta_seat_impl_sync_leds_in_impl (seat_impl);
 
   /* Clutter assumes that device types are exclusive in the
    * ClutterInputDevice API */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]