mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-28 09:59:56 +00:00
dix: remove inputInfo.keyboard reference in QueryPointer handling.
PickKeyboard() is to be used instead.
This commit is contained in:
@@ -5130,6 +5130,7 @@ ProcQueryPointer(ClientPtr client)
|
||||
xQueryPointerReply rep;
|
||||
WindowPtr pWin, t;
|
||||
DeviceIntPtr mouse = PickPointer(client);
|
||||
DeviceIntPtr kbd = PickKeyboard(client);
|
||||
SpritePtr pSprite;
|
||||
int rc;
|
||||
REQUEST(xResourceReq);
|
||||
@@ -5147,7 +5148,7 @@ ProcQueryPointer(ClientPtr client)
|
||||
MaybeStopHint(mouse, client);
|
||||
rep.type = X_Reply;
|
||||
rep.sequenceNumber = client->sequence;
|
||||
rep.mask = mouse->button->state | inputInfo.keyboard->key->state;
|
||||
rep.mask = mouse->button->state | kbd->key->state;
|
||||
rep.length = 0;
|
||||
rep.root = (RootWindow(mouse))->drawable.id;
|
||||
rep.rootX = pSprite->hot.x;
|
||||
|
||||
Reference in New Issue
Block a user