~mir-team/mir/development-branch

« back to all changes in this revision

Viewing changes to src/server/graphics/nested/display_buffer.cpp

Make use of the input device state event

AbstractShell sends that event on focus change, the XkbMapper receives that information and used it to update its xkb_state. Additionally the nested input platform forwards that event.

Approved by mir-ci-bot, Kevin DuBois.

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
 
111
111
void mgn::detail::DisplayBuffer::mir_event(MirEvent const& event)
112
112
{
113
 
    if (mir_event_get_type(&event) != mir_event_type_input)
114
 
        return;
115
 
 
116
 
    host_connection->emit_input_event(event, area);
 
113
    if (mir_event_get_type(&event) == mir_event_type_input ||
 
114
        mir_event_get_type(&event) == mir_event_type_input_device_state)
 
115
        host_connection->emit_input_event(event, area);
117
116
}
118
117
 
119
118
mg::NativeDisplayBuffer* mgn::detail::DisplayBuffer::native_display_buffer()