mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
clutter: Handle touch down and button press events in ClutterInputFocus
In line with GTK, the input method context should be reset when clicks are handled by the ClutterInputFocus user. The reset action can then either clear or commit the preedit text, as configured by the IM module. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1940>
This commit is contained in:
parent
b328c8cc8b
commit
9c20b4144a
@ -179,6 +179,14 @@ clutter_input_focus_filter_event (ClutterInputFocus *focus,
|
|||||||
event->im.offset);
|
event->im.offset);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
else if (event->type == CLUTTER_TOUCH_BEGIN ||
|
||||||
|
(event->type == CLUTTER_BUTTON_PRESS &&
|
||||||
|
event->button.button == CLUTTER_BUTTON_PRIMARY))
|
||||||
|
{
|
||||||
|
clutter_input_focus_reset (focus);
|
||||||
|
/* pointing events are not consumed by IMs */
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user