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:
parent
e11d08807d
commit
00efebe00a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user