Page MenuHomePhabricator

ecore_wayland: check ECORE_WL_EVENT_GLOBAL_ADD/REMOVED, ECORE_WL_EVENT_KEYMAP_UPDATE events in wayland 2
Open, NormalPublic

Description

need to add below event.
ECORE_WL_EVENT_GLOBAL_ADDED
ECORE_WL_EVENT_GLOBAL_REMOVED
ECORE_WL_EVENT_KEYMAP_UPDATE

https://review.tizen.org/gerrit/#/c/65096/10

@devilhorns
I heared that already there are simiral events in wayland 2.
would you tell me what 's that?

@gwanglim
if devilhorn needs the history, share the history with us.

jypark created this task.Jul 25 2017, 12:31 AM
jypark triaged this task as Normal priority.

@jypark Since EFL 1.17 there has been an event in Ecore_Wl2 that will get raised when a Global is Added or Removed. You can setup an event handler and listen for those events. The code which raises the Global Add event is here:

https://git.enlightenment.org/core/efl.git/tree/src/lib/ecore_wl2/ecore_wl2_display.c#n239

And the code which raises the Global Removed event is here:

https://git.enlightenment.org/core/efl.git/tree/src/lib/ecore_wl2/ecore_wl2_display.c#n357

There is currently no event (yet) for the Keymap Update. I will add that soon for you.

@jypark I took a look at the Keymap Update stuff, and it is already included in Ecore_Wl2. The event to listen for is:

ECORE_WL2_EVENT_SEAT_KEYMAP_CHANGED