clarify some wl surface checks to require elm wins
these should not apply to role-less surfaces
This commit is contained in:
parent
a95d5ebd40
commit
7c38e4edb4
|
@ -1016,7 +1016,7 @@ _e_comp_wl_client_evas_init(E_Client *ec)
|
|||
_e_comp_wl_evas_cb_hide, ec);
|
||||
|
||||
/* setup input callbacks */
|
||||
if (ec->internal)
|
||||
if (ec->internal_elm_win)
|
||||
{
|
||||
evas_object_smart_callback_add(ec->frame, "mouse_in",
|
||||
(Evas_Smart_Cb)_e_comp_wl_cb_internal_mouse_in, ec);
|
||||
|
@ -1768,7 +1768,7 @@ _e_comp_wl_surface_destroy(struct wl_resource *resource)
|
|||
|
||||
if (!(ec = wl_resource_get_user_data(resource))) return;
|
||||
|
||||
if (ec->internal)
|
||||
if (ec->internal_elm_win)
|
||||
{
|
||||
e_pixmap_alias(ec->pixmap, E_PIXMAP_TYPE_WL, wl_resource_get_id(resource));
|
||||
ec->ignored = 1;
|
||||
|
@ -2423,7 +2423,7 @@ _e_comp_wl_client_cb_new(void *data EINA_UNUSED, E_Client *ec)
|
|||
/* NB: could not find a better place to do this, BUT for internal windows,
|
||||
* we need to set delete_request else the close buttons on the frames do
|
||||
* basically nothing */
|
||||
if ((ec->internal) || (ec->internal_elm_win))
|
||||
if (ec->internal_elm_win)
|
||||
{
|
||||
ec->icccm.delete_request = EINA_TRUE;
|
||||
ec->override = elm_win_override_get(e_win_evas_win_get(ecore_evas_get(ecore_event_window_match(win))));
|
||||
|
|
Loading…
Reference in New Issue