diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-01-08 15:18:41 +1000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-01-27 14:38:16 -0800 |
commit | b4baab90c0d98bef98d485682d4a69a327a380d6 (patch) | |
tree | 89b40f7b406da436ef186069b0b005d9035e6498 /test | |
parent | 27fc98ecfed99fefd5c14388b4c6242f87281895 (diff) |
dix: EventToCore needs to copy the root window too.
This value isn't actually set for normal events but it saves us some work
for the record extension support.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/input.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/input.c b/test/input.c index 2de55bc63..63d1a1801 100644 --- a/test/input.c +++ b/test/input.c @@ -153,6 +153,7 @@ static void dix_event_to_core(int type) int rc; int state; int detail; + const int ROOT_WINDOW_ID = 0x100; /* EventToCore memsets the event to 0 */ #define test_event() \ @@ -165,7 +166,7 @@ static void dix_event_to_core(int type) g_assert(core.u.keyButtonPointer.state == state); \ g_assert(core.u.keyButtonPointer.eventX == 0); \ g_assert(core.u.keyButtonPointer.eventY == 0); \ - g_assert(core.u.keyButtonPointer.root == 0); \ + g_assert(core.u.keyButtonPointer.root == ROOT_WINDOW_ID); \ g_assert(core.u.keyButtonPointer.event == 0); \ g_assert(core.u.keyButtonPointer.child == 0); \ g_assert(core.u.keyButtonPointer.sameScreen == FALSE); @@ -181,6 +182,7 @@ static void dix_event_to_core(int type) ev.time = time; ev.root_y = x; ev.root_x = y; + ev.root = ROOT_WINDOW_ID; ev.corestate = state; ev.detail.key = detail; |