mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
sculpt: let touch input drive the input seq number
This change allows the use of the sculpt manager with touch-only input. Issue #4514
This commit is contained in:
committed by
Christian Helmuth
parent
115ac58fd0
commit
a8631aeae9
@@ -41,7 +41,10 @@ struct Gui::Session_component : Rpc_object<Gui::Session>
|
||||
* Augment input stream with sequence numbers to correlate
|
||||
* clicks with hover reports.
|
||||
*/
|
||||
if (ev.key_press(Input::BTN_LEFT) || ev.key_release(Input::BTN_LEFT)) {
|
||||
bool const advance_seq_number = ev.key_press(Input::BTN_LEFT)
|
||||
|| ev.key_release(Input::BTN_LEFT)
|
||||
|| ev.touch();
|
||||
if (advance_seq_number) {
|
||||
_global_input_seq_number.value++;
|
||||
_input_component.submit(_global_input_seq_number);
|
||||
}
|
||||
|
||||
@@ -691,7 +691,7 @@ struct Sculpt::Main : Input_event_handler,
|
||||
{
|
||||
bool need_generate_dialog = false;
|
||||
|
||||
if (ev.key_press(Input::BTN_LEFT)) {
|
||||
if (ev.key_press(Input::BTN_LEFT) || ev.touch()) {
|
||||
_clicked_seq_number.construct(_global_input_seq_number);
|
||||
_try_handle_click();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user