weston-simple-im: Use serial number from incoming events
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 27 Nov 2012 18:57:27 +0000 (13:57 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 27 Nov 2012 18:57:27 +0000 (13:57 -0500)
commit79bfde20bd782588a4747ebf15a0d17e5b1b3a7a
tree3cfafded198f57b57255e53d0ca301ce381fdb34
parent8c03616c3931a8cb4a8a0e52a27a9c8866d58a61
weston-simple-im: Use serial number from incoming events

The key events we pass through to the input_method_context has to have
a serial number that corresponds to the key event we got.  The struct display
serial is updated on pointer enter/leave and keyboard events, but not the
input method keyboard events.  So the display serial will never correspond
to the key event we're dealing with and we have to pass through the
serial we get from the key event.
clients/weston-simple-im.c