forked from enlightenment/efl
elementary: handle case when XFIXES is not available.
Summary: ECORE_X_EVENT_FIXES_SELECTION_NOTIFY is only initialized when XFIXES is available. If ecore_event_handler_add is called with type == 0, it will trigger an abort and elementary would not initialize properly. Depends on D10491 Reviewers: zmike, raster, bu5hm4n, Hermet Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T8321 Differential Revision: https://phab.enlightenment.org/D10492
This commit is contained in:
parent
d50e28aa9f
commit
8d9c967275
|
@ -5475,6 +5475,7 @@ _efl_ui_selection_manager_efl_object_constructor(Eo *obj, Efl_Ui_Selection_Manag
|
||||||
_efl_sel_manager_x11_selection_notify, pd);
|
_efl_sel_manager_x11_selection_notify, pd);
|
||||||
pd->clear_handler = ecore_event_handler_add(ECORE_X_EVENT_SELECTION_CLEAR,
|
pd->clear_handler = ecore_event_handler_add(ECORE_X_EVENT_SELECTION_CLEAR,
|
||||||
_x11_selection_clear, pd);
|
_x11_selection_clear, pd);
|
||||||
|
if (ECORE_X_EVENT_FIXES_SELECTION_NOTIFY) // If XFIXES is not available ECORE_X_EVENT_FIXES_SELECTION_NOTIFY would be NULL
|
||||||
pd->fix_handler = ecore_event_handler_add(ECORE_X_EVENT_FIXES_SELECTION_NOTIFY,
|
pd->fix_handler = ecore_event_handler_add(ECORE_X_EVENT_FIXES_SELECTION_NOTIFY,
|
||||||
_x11_fixes_selection_notify, pd);
|
_x11_fixes_selection_notify, pd);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue