summaryrefslogtreecommitdiff
path: root/xkb/ddxFakeBtn.c
diff options
context:
space:
mode:
Diffstat (limited to 'xkb/ddxFakeBtn.c')
-rw-r--r--xkb/ddxFakeBtn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkb/ddxFakeBtn.c b/xkb/ddxFakeBtn.c
index 3dbb5330e..f9dcbf79d 100644
--- a/xkb/ddxFakeBtn.c
+++ b/xkb/ddxFakeBtn.c
@@ -46,7 +46,7 @@ xEvent ev;
int x,y;
DevicePtr ptr;
- if ((ptr = LookupPointerDevice())==NULL)
+ if ((ptr = (DevicePtr)inputInfo.pointer)==NULL)
return;
GetSpritePosition(inputInfo.pointer, &x,&y);
ev.u.u.type = event;