forked from enlightenment/efl
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:
parent
955574c044
commit
07b8f7f0ff
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue