mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-23 12:35:41 +00:00
parent
61e1cf76c2
commit
844174918b
@ -301,8 +301,18 @@ struct Nit_fb::Main : View_updater
|
||||
Input::Event const * const events = input_ds.local_addr<Input::Event>();
|
||||
|
||||
unsigned const num = nitpicker.input()->flush();
|
||||
for (unsigned i = 0; i < num; i++)
|
||||
bool update = false;
|
||||
|
||||
for (unsigned i = 0; i < num; i++) {
|
||||
if (events[i].type() == Input::Event::FOCUS)
|
||||
update = events[i].code();
|
||||
|
||||
input_session.submit(translate_event(events[i], position, fb_session.size()));
|
||||
}
|
||||
|
||||
/* get to front if we got input focus */
|
||||
if (update)
|
||||
update_view();
|
||||
}
|
||||
|
||||
Signal_handler<Main> input_handler =
|
||||
|
Loading…
x
Reference in New Issue
Block a user