efl/wl: add 'extracted' property for surfaces

Summary:
useful to be able to know whether a surface has been extracted
Depends on D11476

Reviewers: segfaultxavi, bu5hm4n

Reviewed By: segfaultxavi

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11495
This commit is contained in:
Mike Blumenkrantz 2020-03-12 12:16:25 -04:00
parent 955574c044
commit 07b8f7f0ff
2 changed files with 14 additions and 0 deletions

View File

@ -5813,6 +5813,14 @@ _efl_canvas_wl_surface_parent_surface_get(const Eo *surface, Comp_Surface *cs)
return NULL;
}
static EOLIAN Eina_Bool
_efl_canvas_wl_surface_extracted_get(const Eo *surface EINA_UNUSED, Comp_Surface *cs)
{
EINA_SAFETY_ON_TRUE_RETURN_VAL(cs->dead, EINA_FALSE);
return cs->extracted;
}
static EOLIAN void
_efl_canvas_wl_seat_keymap_set(Eo *obj, Comp *c, Eo *seat, Efl_Canvas_Wl_Xkb_State *state, const char *str, Efl_Canvas_Wl_Wl_Array *key_array)
{

View File

@ -18,6 +18,12 @@ class @beta Efl.Canvas.Wl.Surface extends Efl.Canvas.Group
parent: Efl.Canvas.Wl.Surface;
}
}
@property extracted {
get {}
values {
extracted: bool;
}
}
}
implements {
Efl.Object.constructor;