[PATCH] test-xi2: fix modifiers for XIGrabButton call

Thomas Jaeger ThJaeger at gmail.com
Fri May 29 16:23:04 PDT 2009


Signed-off-by: Thomas Jaeger <ThJaeger at gmail.com>
---
 src/test_xi2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/test_xi2.c b/src/test_xi2.c
index b03b762..ede8d91 100644
--- a/src/test_xi2.c
+++ b/src/test_xi2.c
@@ -293,7 +293,7 @@ test_xi2(Display	*display,
     XSync(display, False);
 
     {
-        int modifiers[] = {0, 0x10, 0x1, 0x11};
+        XIGrabModifiers modifiers[] = {{0, 0}, {0, 0x10}, {0, 0x1}, {0, 0x11}};
         int nmods = sizeof(modifiers)/sizeof(modifiers[0]);
 
         mask.deviceid = 2;
-- 
1.6.3.1


--------------080808070000050206010706
Content-Type: text/plain;
 name="crash.gdb"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="crash.gdb"

(gdb) bt
#0  0x080845d9 in DeliverGrabbedEvent (event=0xccfdf88, thisDev=0xcba2b40, deactivateGrab=0)
    at ../../dix/events.c:3851
#1  0x08134700 in ProcessOtherEvent (ev=0xccfdf88, device=0xcba2b40) at ../../Xi/exevents.c:1109
#2  0x0814f29c in ProcessKeyboardEvent (ev=0xccfdf88, keybd=0xcba2b40)
    at ../../xkb/xkbPrKeyEv.c:181
#3  0x0809a15d in mieqProcessDeviceEvent (dev=0xcba2b40, event=0xccfdf88, screen=0xa065f98)
    at ../../mi/mieq.c:403
#4  0x0809a279 in mieqProcessInputEvents () at ../../mi/mieq.c:463
#5  0x080b7d87 in ProcessInputEvents () at ../../../../hw/xfree86/common/xf86Events.c:172
#6  0x0807bfee in Dispatch () at ../../dix/dispatch.c:358
#7  0x080675cd in main (argc=10, argv=0xbfe512f4, envp=Cannot access memory at address 0x8
) at ../../dix/main.c:283
(gdb) print xi2
$10 = (xEvent *) 0x0
(gdb) print event->any.type == ET_ProximityOut
$11 = 1
(gdb) 

--------------080808070000050206010706--


More information about the xorg mailing list