X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=staging%2Fxdg-launcher.git;a=blobdiff_plain;f=src%2Frunxdg.cpp;h=e4ec1c932d8b6d0fea8cc2e24942cee80da0edab;hp=8582023814d80b7ee132fb96e1d3bb7501d5991e;hb=f7ac2f42c22b8324cc30b50dc255f85df406765a;hpb=da4fc1efac827ac209c4d7c83968e0433c681298 diff --git a/src/runxdg.cpp b/src/runxdg.cpp index 8582023..e4ec1c9 100644 --- a/src/runxdg.cpp +++ b/src/runxdg.cpp @@ -283,22 +283,22 @@ int RunXDG::init_wm (void) std::function< void(json_object*) > h_active = [this](json_object* object) { AGL_DEBUG("Got Event_Active"); - t_ilm_surface s_ids[1] = { this->m_ivi_id }; - ilm_setInputFocus(s_ids, 1, ILM_INPUT_DEVICE_KEYBOARD, ILM_TRUE); }; std::function< void(json_object*) > h_inactive = [this](json_object* object) { AGL_DEBUG("Got Event_Inactive"); - t_ilm_surface s_ids[1] = { this->m_ivi_id }; - ilm_setInputFocus(s_ids, 1, ILM_INPUT_DEVICE_KEYBOARD, ILM_FALSE); }; - std::function< void(json_object*) > h_visible = [](json_object* object) { + std::function< void(json_object*) > h_visible = [this](json_object* object) { AGL_DEBUG("Got Event_Visible"); + t_ilm_surface s_ids[1] = { this->m_ivi_id }; + ilm_setInputFocus(s_ids, 1, ILM_INPUT_DEVICE_KEYBOARD, ILM_TRUE); }; - std::function< void(json_object*) > h_invisible = [](json_object* object) { + std::function< void(json_object*) > h_invisible = [this](json_object* object) { AGL_DEBUG("Got Event_Invisible"); + t_ilm_surface s_ids[1] = { this->m_ivi_id }; + ilm_setInputFocus(s_ids, 1, ILM_INPUT_DEVICE_KEYBOARD, ILM_FALSE); }; std::function< void(json_object*) > h_syncdraw =