D8888: Fix race condition with libinput events on startup

Fabian Vogt noreply at phabricator.kde.org
Sat Nov 18 22:30:22 UTC 2017


fvogt created this revision.
fvogt added reviewers: Plasma, graesslin.
Restricted Application added a project: KWin.
Restricted Application added subscribers: KWin, kwin.

REVISION SUMMARY
  In some cases, it's possible that libinput wrote device added events to
  the file descriptor before the connection to handle those events was
  in-place. This resulted in a compositor without any input devices.

TEST PLAN
  Ran a wayland session. In about 60% of all cases, no input was
  possible. kwin_libinput showed the enumeration of all devices correctly,
  but KWin::LibInput::Context did not have any m_devices.
  After this change, this did not appear anymore.

REPOSITORY
  R108 KWin

REVISION DETAIL
  https://phabricator.kde.org/D8888

AFFECTED FILES
  input.cpp

To: fvogt, #plasma, graesslin
Cc: kwin, #kwin, plasma-devel, bwowk, ZrenBot, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20171118/9a2aa375/attachment.html>


More information about the Plasma-devel mailing list