Skip to content
Snippets Groups Projects
  1. Feb 05, 2016
  2. Feb 04, 2016
    • Peter Hutterer's avatar
      test: fix compiler warning · 7cce2840
      Peter Hutterer authored
      
      litest-selftest.c: In function ‘litest_ptr_eq_notrigger’:
      litest-selftest.c:172:10: warning: initialization makes integer from pointer
      without a cast [-Wint-conversion]
        int c = NULL;
                ^
      litest-selftest.c:173:10: warning: initialization makes integer from pointer
      without a cast [-Wint-conversion]
        int d = NULL;
                ^
      
      Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      (cherry picked from commit 82335b0a)
      7cce2840
  3. Jan 25, 2016
  4. Dec 22, 2015
  5. Dec 18, 2015
    • Peter Hutterer's avatar
      evdev: drain any pending evdev events on a device · 30df66d0
      Peter Hutterer authored
      
      open_restricted() doesn't always mean 'open the fd'. When the X server uses
      systemd-logind, the fd is opened once before PreInit and then kept open across
      devices being disabled and enabled through the protocol.
      
      When the device is re-enabled and libinput_path_add_device is called for the
      device, we may have events pending on the fd, leaking information that we
      should just ignore.
      
      There's also the potential of inconsistent state. The kernel updates the
      device state whenever it processes an event, the evdev ioctls return that
      state. If events are pending, the state we see is newer than the events we
      process immediately after initialization. That can lead to confusion.
      
      Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      30df66d0
  6. Dec 15, 2015
  7. Dec 13, 2015
  8. Dec 10, 2015
  9. Dec 08, 2015
  10. Dec 07, 2015
  11. Dec 02, 2015
  12. Nov 15, 2015
Loading