diff options
author | Brian <brian@yutani.localnet.net> | 2007-04-02 12:28:14 -0600 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-04-02 12:29:37 -0600 |
commit | 08a88d1803f672555141011e082fbc0edeedcf05 (patch) | |
tree | bbb3ba04ae977dbf8255c16b9490a4fd5ad2de21 /hw/dmx | |
parent | 70683e338dacc48e3adf489d66ec33b29dfc3b77 (diff) |
Pass num_valuators=0 for ButtonPress/Release. This seems to fix the button coordinate problem
Diffstat (limited to 'hw/dmx')
-rw-r--r-- | hw/dmx/input/dmxevents.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/hw/dmx/input/dmxevents.c b/hw/dmx/input/dmxevents.c index fae2049b3..d174a59c7 100644 --- a/hw/dmx/input/dmxevents.c +++ b/hw/dmx/input/dmxevents.c @@ -799,20 +799,12 @@ void dmxEnqueue(DevicePtr pDev, int type, int detail, KeySym keySym, DeviceIntPtr p = dmxLocal->pDevice; int i, nevents, valuators[3]; xEvent *events = Xcalloc(sizeof(xEvent), GetMaximumEventsNum()); - - valuators[0] = e->xbutton.x; - valuators[1] = e->xbutton.y; - /* - valuators[0] = dmxGlobalX; - valuators[1] = dmxGlobalY; - */ valuators[2] = e->xbutton.button; - nevents = GetPointerEvents(events, - /*pDev*/p, - /*KeyPress*/type, - detail, + nevents = GetPointerEvents(events, p, type, detail, POINTER_ABSOLUTE, - 0, 2/*3*/, valuators); + 0, /* first_valuator = 0 */ + 0, /* num_valuators = 0 */ + valuators); ErrorF("BUTTON %d, %d %d n=%d\n", valuators[0], valuators[1], valuators[2], nevents); |