mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-21 20:26:45 +00:00
XKB: Remove unsupported Xi operation flags
We support every XKB operation on Xi devices, so always report that we support everything, and that nothing is ever unsupported. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
32db27a7f8
commit
cc5c6d628a
4 changed files with 9 additions and 34 deletions
|
|
@ -667,7 +667,7 @@ int initialized;
|
|||
XkbInterestPtr interest;
|
||||
Time time = 0;
|
||||
CARD32 defined, state;
|
||||
CARD16 reason, supported = 0;
|
||||
CARD16 reason;
|
||||
|
||||
interest = dev->xkb_interest;
|
||||
if (!interest)
|
||||
|
|
@ -688,7 +688,6 @@ CARD16 reason, supported = 0;
|
|||
pEv->deviceID = dev->id;
|
||||
pEv->sequenceNumber = interest->client->sequence;
|
||||
pEv->time = time = GetTimeInMillis();
|
||||
supported= pEv->supported;
|
||||
initialized= 1;
|
||||
}
|
||||
else {
|
||||
|
|
@ -697,14 +696,7 @@ CARD16 reason, supported = 0;
|
|||
pEv->ledsDefined= defined;
|
||||
pEv->ledState= state;
|
||||
pEv->reason= reason;
|
||||
pEv->supported= supported;
|
||||
}
|
||||
if (client!=interest->client) {
|
||||
/* only report UnsupportedFeature to the client that */
|
||||
/* issued the failing request */
|
||||
pEv->reason&= ~XkbXI_UnsupportedFeatureMask;
|
||||
if ((interest->extDevNotifyMask&reason)==0)
|
||||
continue;
|
||||
pEv->supported= XkbXI_AllFeaturesMask;
|
||||
}
|
||||
if ( interest->client->swapped ) {
|
||||
register int n;
|
||||
|
|
|
|||
Loading…
Reference in a new issue