From 455e322c17d364cd6999d45bf669683abebf6890 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Wed, 20 Mar 2019 15:01:23 +0100 Subject: [PATCH] efl_ui_selection: give this event a better name this event does not get emitted when selection per se changes, it gets emitted when the selection in the window manager changes. we should prefix this even with that. ref T7476 Reviewed-by: Xavi Artigas Differential Revision: https://phab.enlightenment.org/D8424 --- src/lib/elementary/efl_ui_selection.eo | 2 +- src/lib/elementary/efl_ui_selection_manager.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/elementary/efl_ui_selection.eo b/src/lib/elementary/efl_ui_selection.eo index 5dfedbf..20e4226 100644 --- a/src/lib/elementary/efl_ui_selection.eo +++ b/src/lib/elementary/efl_ui_selection.eo @@ -40,6 +40,6 @@ mixin @beta Efl.Ui.Selection { } } events { - selection,changed: Efl.Ui.Selection_Changed; [[Called when display server's selection has changed]] + wm_selection,changed: Efl.Ui.Selection_Changed; [[Called when display server's selection has changed]] } } diff --git a/src/lib/elementary/efl_ui_selection_manager.c b/src/lib/elementary/efl_ui_selection_manager.c index be74c25..98926c0 100644 --- a/src/lib/elementary/efl_ui_selection_manager.c +++ b/src/lib/elementary/efl_ui_selection_manager.c @@ -893,7 +893,7 @@ _x11_fixes_selection_notify(void *data, int t EINA_UNUSED, void *event) _e->exists = e.exist; ecore_event_add(ELM_CNP_EVENT_SELECTION_CHANGED, _e, NULL, NULL); - efl_event_callback_call(sel->owner, EFL_UI_SELECTION_EVENT_SELECTION_CHANGED, &e); + efl_event_callback_call(sel->owner, EFL_UI_SELECTION_EVENT_WM_SELECTION_CHANGED, &e); return ECORE_CALLBACK_RENEW; } @@ -2679,7 +2679,7 @@ _wl_selection_changed(void *data, int type EINA_UNUSED, void *event) _e->exists = e.exist; ecore_event_add(ELM_CNP_EVENT_SELECTION_CHANGED, _e, _wl_selection_changed_free, ev->display); - efl_event_callback_call(sel->request_obj, EFL_UI_SELECTION_EVENT_SELECTION_CHANGED, &e); + efl_event_callback_call(sel->request_obj, EFL_UI_SELECTION_EVENT_WM_SELECTION_CHANGED, &e); return ECORE_CALLBACK_RENEW; } -- 2.7.4