efl-wl: move flags_run to exec_flags property

Summary:
typically the compositor wants to run all exes with the same flags so this
makes more sense
Depends on D11470

Reviewers: segfaultxavi, bu5hm4n

Reviewed By: segfaultxavi

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11475
This commit is contained in:
Mike Blumenkrantz 2020-03-12 12:16:10 -04:00
parent 2754b24cdd
commit d284d19429
2 changed files with 13 additions and 7 deletions

View File

@ -123,6 +123,7 @@ typedef struct Comp
Efl_Wl_Rotation rotation; Efl_Wl_Rotation rotation;
double scale; double scale;
char *env; char *env;
Efl_Exe_Flags flags;
Ecore_Wl2_Display *disp; Ecore_Wl2_Display *disp;
Ecore_Wl2_Display *parent_disp; Ecore_Wl2_Display *parent_disp;
Ecore_Wl2_Display *client_disp; Ecore_Wl2_Display *client_disp;
@ -5283,6 +5284,7 @@ _efl_wl_efl_canvas_group_group_add(Eo *obj, Comp *c)
efl_canvas_group_add(efl_super(obj, MY_CLASS)); efl_canvas_group_add(efl_super(obj, MY_CLASS));
c->wayland_time_base = ecore_loop_time_get(); c->wayland_time_base = ecore_loop_time_get();
c->obj = obj; c->obj = obj;
c->flags = EFL_EXE_FLAGS_TERM_WITH_PARENT;
env = getenv("WAYLAND_DISPLAY"); env = getenv("WAYLAND_DISPLAY");
if (env) env = strdup(env); if (env) env = strdup(env);
@ -5563,10 +5565,16 @@ _efl_wl_run(Eo *obj, Comp *c, const char *cmd)
return comp_run(obj, c, cmd, EFL_EXE_FLAGS_TERM_WITH_PARENT); return comp_run(obj, c, cmd, EFL_EXE_FLAGS_TERM_WITH_PARENT);
} }
EOLIAN static Eo * EOLIAN static Efl_Exe_Flags
_efl_wl_flags_run(Eo *obj, Comp *c, const char *cmd, Efl_Exe_Flags flags) _efl_wl_exec_flags_get(const Eo *obj, Comp *c)
{ {
return comp_run(obj, c, cmd, flags); return c->flags;
}
EOLIAN static void
_efl_wl_exec_flags_set(Eo *obj, Comp *c, Efl_Exe_Flags flags)
{
c->flags = flags;
} }
EOLIAN static void EOLIAN static void

View File

@ -36,12 +36,10 @@ class @beta Efl.Wl extends Efl.Canvas.Group
} }
return: Efl.Exe; return: Efl.Exe;
} }
flags_run { @property exec_flags {
params { values {
cmd: string;
flags: Efl.Exe_Flags; flags: Efl.Exe_Flags;
} }
return: Efl.Exe;
} }
allowed_pid_add { allowed_pid_add {
params { params {