2008-06-23 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/x11/clutter-event-x11.c (event_translate): Set the
	event type explicitly in the union members as well for the
	key events, like we do for all the other events.
This commit is contained in:
Emmanuele Bassi 2008-06-23 22:00:37 +00:00
parent e11d08807d
commit 00efebe00a
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2008-06-23 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/x11/clutter-event-x11.c (event_translate): Set the
event type explicitly in the union members as well for the
key events, like we do for all the other events.
2008-06-23 Neil Roberts <neil@o-hand.com>
* clutter/clutter-entry.c (clutter_entry_paint): Set the clip

View File

@ -583,13 +583,14 @@ event_translate (ClutterBackend *backend,
switch (xevent->type)
{
case KeyPress:
event->type = CLUTTER_KEY_PRESS;
event->key.type = event->type = CLUTTER_KEY_PRESS;
translate_key_event (backend, event, xevent);
set_user_time (backend_x11, &xwindow, xevent->xkey.time);
break;
case KeyRelease:
event->type = CLUTTER_KEY_RELEASE;
event->key.type = event->type = CLUTTER_KEY_RELEASE;
translate_key_event (backend, event, xevent);
break;
@ -768,6 +769,7 @@ event_translate (ClutterBackend *backend,
event->key.type = event->type = CLUTTER_KEY_PRESS;
translate_key_event (backend, event, &xevent_converted);
set_user_time (backend_x11, &xwindow, xkev->time);
}
else if (xevent->type
@ -778,7 +780,7 @@ event_translate (ClutterBackend *backend,
convert_xdevicekey_to_xkey (xkev, &xevent_converted);
event->type = CLUTTER_KEY_RELEASE;
event->key.type = event->type = CLUTTER_KEY_RELEASE;
translate_key_event (backend, event, &xevent_converted);
}
else