summaryrefslogtreecommitdiff
path: root/src/lib/efl_wl
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-03-12 12:16:10 -0400
committerMike Blumenkrantz <zmike@samsung.com>2020-03-12 12:17:07 -0400
commitd284d19429d482dd0636b1f1aab8b5502c572975 (patch)
treea42d07af3ff2764c6d1eb30ba931f64819c924b7 /src/lib/efl_wl
parent2754b24cdd2901e839a070e88b899907a1496406 (diff)
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
Diffstat (limited to 'src/lib/efl_wl')
-rw-r--r--src/lib/efl_wl/efl_wl.c14
-rw-r--r--src/lib/efl_wl/efl_wl.eo6
2 files changed, 13 insertions, 7 deletions
diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c
index 56efb5c6d7..060c3837aa 100644
--- a/src/lib/efl_wl/efl_wl.c
+++ b/src/lib/efl_wl/efl_wl.c
@@ -123,6 +123,7 @@ typedef struct Comp
123 Efl_Wl_Rotation rotation; 123 Efl_Wl_Rotation rotation;
124 double scale; 124 double scale;
125 char *env; 125 char *env;
126 Efl_Exe_Flags flags;
126 Ecore_Wl2_Display *disp; 127 Ecore_Wl2_Display *disp;
127 Ecore_Wl2_Display *parent_disp; 128 Ecore_Wl2_Display *parent_disp;
128 Ecore_Wl2_Display *client_disp; 129 Ecore_Wl2_Display *client_disp;
@@ -5283,6 +5284,7 @@ _efl_wl_efl_canvas_group_group_add(Eo *obj, Comp *c)
5283 efl_canvas_group_add(efl_super(obj, MY_CLASS)); 5284 efl_canvas_group_add(efl_super(obj, MY_CLASS));
5284 c->wayland_time_base = ecore_loop_time_get(); 5285 c->wayland_time_base = ecore_loop_time_get();
5285 c->obj = obj; 5286 c->obj = obj;
5287 c->flags = EFL_EXE_FLAGS_TERM_WITH_PARENT;
5286 env = getenv("WAYLAND_DISPLAY"); 5288 env = getenv("WAYLAND_DISPLAY");
5287 if (env) env = strdup(env); 5289 if (env) env = strdup(env);
5288 5290
@@ -5563,10 +5565,16 @@ _efl_wl_run(Eo *obj, Comp *c, const char *cmd)
5563 return comp_run(obj, c, cmd, EFL_EXE_FLAGS_TERM_WITH_PARENT); 5565 return comp_run(obj, c, cmd, EFL_EXE_FLAGS_TERM_WITH_PARENT);
5564} 5566}
5565 5567
5566EOLIAN static Eo * 5568EOLIAN static Efl_Exe_Flags
5567_efl_wl_flags_run(Eo *obj, Comp *c, const char *cmd, Efl_Exe_Flags flags) 5569_efl_wl_exec_flags_get(const Eo *obj, Comp *c)
5570{
5571 return c->flags;
5572}
5573
5574EOLIAN static void
5575_efl_wl_exec_flags_set(Eo *obj, Comp *c, Efl_Exe_Flags flags)
5568{ 5576{
5569 return comp_run(obj, c, cmd, flags); 5577 c->flags = flags;
5570} 5578}
5571 5579
5572EOLIAN static void 5580EOLIAN static void
diff --git a/src/lib/efl_wl/efl_wl.eo b/src/lib/efl_wl/efl_wl.eo
index b41b429871..f52fa1a8c6 100644
--- a/src/lib/efl_wl/efl_wl.eo
+++ b/src/lib/efl_wl/efl_wl.eo
@@ -36,12 +36,10 @@ class @beta Efl.Wl extends Efl.Canvas.Group
36 } 36 }
37 return: Efl.Exe; 37 return: Efl.Exe;
38 } 38 }
39 flags_run { 39 @property exec_flags {
40 params { 40 values {
41 cmd: string;
42 flags: Efl.Exe_Flags; 41 flags: Efl.Exe_Flags;
43 } 42 }
44 return: Efl.Exe;
45 } 43 }
46 allowed_pid_add { 44 allowed_pid_add {
47 params { 45 params {