mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
events: Update current time on CLUTTER_TOUCH_BEGIN events
Just as with key/button press events, update the current interaction time when a touch begins on a window.
This commit is contained in:
parent
b9687d1a72
commit
4ad2865cce
@ -120,7 +120,9 @@ meta_display_handle_event (MetaDisplay *display,
|
|||||||
display->current_time = event->any.time;
|
display->current_time = event->any.time;
|
||||||
|
|
||||||
if (window && !window->override_redirect &&
|
if (window && !window->override_redirect &&
|
||||||
(event->type == CLUTTER_KEY_PRESS || event->type == CLUTTER_BUTTON_PRESS))
|
(event->type == CLUTTER_KEY_PRESS ||
|
||||||
|
event->type == CLUTTER_BUTTON_PRESS ||
|
||||||
|
event->type == CLUTTER_TOUCH_BEGIN))
|
||||||
{
|
{
|
||||||
if (CurrentTime == display->current_time)
|
if (CurrentTime == display->current_time)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user