Implement hotplugging on Xlib
ClosedPublic

Authored by fvogt on Dec 31 2017, 1:56 PM.

Details

Summary

Register for events using Xlib and read them using Xcb.
This is a mixture of the method used in
qtbase/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp
and plasma-desktop's ca7618dd6173db8a8f0e36d91a38a1d4ac7d0706

BUG: 361743

Test Plan

Restarted kded after make install, plugging and unplugging
causes notifications.

Diff Detail

Repository
R530 Wacom tablet support
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
fvogt requested review of this revision.Dec 31 2017, 1:56 PM
fvogt created this revision.
valeriymalov accepted this revision.Jan 2 2018, 7:03 PM

Seems good to me, works for me too.

I'd pick this one since it's closer to xcb backend implementation.

This revision is now accepted and ready to land.Jan 2 2018, 7:03 PM
fvogt added a comment.Jan 2 2018, 7:10 PM

Ok, thanks!

It might even be possible to merge both x11eventnotifier "backends" into one x11eventnotifier.cpp that way,
depending on whether one big #ifdef is better or worse than multiple smaller #ifdef

This revision was automatically updated to reflect the committed changes.