forked from AuroraMiddleware/gtk
wayland: Clean up key repeat timeout
When returning G_SOURCE_REMOVE from a callback, we need to reset the source id as well.
This commit is contained in:
parent
4d2e7a0314
commit
69479ceaef
@ -1804,6 +1804,8 @@ keyboard_repeat (gpointer data)
|
|||||||
&sync_after_repeat_callback_listener,
|
&sync_after_repeat_callback_listener,
|
||||||
device);
|
device);
|
||||||
|
|
||||||
|
device->repeat_timer = 0;
|
||||||
|
|
||||||
return G_SOURCE_REMOVE;
|
return G_SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user