Xi: ChangeDeviceControl presence events should set the appropriate devchange.
Requires inputproto 1.4.4 or higher.
(cherry picked from commit 591ef3c047
)
Modified to use the numeric value of DeviceControlChanged instead of the
define, just so we don't bork out if someone rebuilds without updating
inputproto. This is a released server, after all.
This commit is contained in:
parent
153c6d48c6
commit
48a9996192
|
@ -261,7 +261,7 @@ out:
|
||||||
if (ret == Success) {
|
if (ret == Success) {
|
||||||
dpn.type = DevicePresenceNotify;
|
dpn.type = DevicePresenceNotify;
|
||||||
dpn.time = currentTime.milliseconds;
|
dpn.time = currentTime.milliseconds;
|
||||||
dpn.devchange = 1;
|
dpn.devchange = 5; /* DeviceControlChanged */
|
||||||
dpn.deviceid = dev->id;
|
dpn.deviceid = dev->id;
|
||||||
dpn.control = stuff->control;
|
dpn.control = stuff->control;
|
||||||
SendEventToAllWindows(dev, DevicePresenceNotifyMask,
|
SendEventToAllWindows(dev, DevicePresenceNotifyMask,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user