platform/upstream/enlightenment.git
5 years agoe_hwc: change the order of deinit 75/192275/2
SooChan Lim [Fri, 2 Nov 2018 01:51:47 +0000 (10:51 +0900)]
e_hwc: change the order of deinit

Change-Id: I660fbf368f579336a5dc5951b55d7d5bdb04a29b

5 years agoe_hwc_window_queue: arrange the functions in the file. 69/192269/2
SooChan Lim [Fri, 2 Nov 2018 01:29:21 +0000 (10:29 +0900)]
e_hwc_window_queue: arrange the functions in the file.

Change-Id: Ie7a323fd41174decd7a307b3b7087cdc356bdc3d

5 years agoe_hwc_window_queue: set NULL after un-referencing the object 52/192252/2
SooChan Lim [Thu, 1 Nov 2018 12:03:59 +0000 (21:03 +0900)]
e_hwc_window_queue: set NULL after un-referencing the object

Change-Id: I73e0461bc4676871b9ac1efbaadb0f8c9ed2f3b7

5 years agoe_plane_renderer: don't change pixmap usable in deactivate 01/192201/2
Changyeon Lee [Tue, 30 Oct 2018 05:31:32 +0000 (14:31 +0900)]
e_plane_renderer: don't change pixmap usable in deactivate

if pixmap usable is true when map state is changed to map,
client is immediately showed.
map state should be changed by rendering of client.

Change-Id: Iecbc66dba92f40c70adb1768962a1f31a253adff

5 years agoMakefile: enlightenment_info requires both -fPIE and -pie compile options, even if... 80/190880/4
Gwanglim Lee [Mon, 8 Oct 2018 08:00:37 +0000 (17:00 +0900)]
Makefile: enlightenment_info requires both -fPIE and -pie compile options, even if it is building for TV profile.

Change-Id: Iac8c25573ae88d207387e4392feb7ab9d2a5fbcc

5 years agoe_info_client: modify proc description 89/190189/10
Juyeon Lee [Fri, 28 Sep 2018 05:15:17 +0000 (14:15 +0900)]
e_info_client: modify proc description

by this commit, enlightenment_info provides
options in alphabetic order
options to be categorized in 3 groups
(1. log trace, 2.information print out, 3.execution requests for enlightenment)

Change-Id: Ic9fcfe0259b55bbd722a657ec3246640d32da571

5 years agoe_policy_visibility: add a E_VIS_ICONIFY_STATE_RUNNING_UNICONIFY_RENDER_DONE state 67/191767/6 submit/tizen/20181030.101450
Doyoun Kang [Tue, 23 Oct 2018 08:49:25 +0000 (17:49 +0900)]
e_policy_visibility: add a E_VIS_ICONIFY_STATE_RUNNING_UNICONIFY_RENDER_DONE state

There was a bug that the window which was pending uniconify by visibility didn't raise
even if it requested to activate.

[TOP] A win -> B win(32bit) -> C win [BOTTOM]

Above window stack,
when "A win" request to lower, then "B win" and "C win" are running uniconify_pending with
not_raise flag.
After "C win" is rendered, its internal state changed to E_VIS_ICONIFY_STATE_UNICONIC.
But e_client_uniconify() is not called because e is waiting for rendering of "B win".

In this time, if "C win" requests to activate, then this request is not added to pending list
because the state of "C win" is E_VIS_ICONIFY_STATE_UNICONIC.

As a result of this, the window stack is changed as below.
[TOP] B win(32bit) -> C win -> A win [BOTTOM]

But, the expected stack is as below.
[TOP] C win -> B win(32bit) -> A win [BOTTOM]

To fix this problem, we add a additional state - E_VIS_ICONIFY_STATE_RUNNING_UNICONIFY_RENDER_DONE.
It means that the window is rendered, but it remains iconic state.
So, the activate request of "C win" is added to the pending list in above case.

The E_VIS_ICONIFY_STATE_RUNNING_UNICONIFY_RENDER_DONE state
is changed to E_VIS_ICONIFY_STATE_UNICONIC after all pending windows are rendered.

Change-Id: I3fff995dbbad7f438e952616bc6840e7a92e2424

5 years agoe_hwc_window: reduce the unnecessary code 06/190806/6
SooChan Lim [Fri, 5 Oct 2018 10:28:31 +0000 (19:28 +0900)]
e_hwc_window: reduce the unnecessary code

Change-Id: Ie8778cd9eeb2ad9716a2042717b992b4e60fb222
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
5 years agoe_hwc_windows: refactor the _e_hwc_windows_accept function 18/191818/3
SooChan Lim [Wed, 24 Oct 2018 07:15:38 +0000 (16:15 +0900)]
e_hwc_windows: refactor the _e_hwc_windows_accept function

- split two functions below.
_e_hwc_windows_validated_changes_update
_e_hwc_windows_accept

- if there is no composition changes after validation,
  do not call the _e_hwc_windows_validated_changes_update

Change-Id: Id78635bec1a46418f10e790ef6428d8ea5f3b26c
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
5 years agoe_hwc_windows: update the states of the visible windows at the windows_changes_update 16/191816/3
SooChan Lim [Wed, 24 Oct 2018 06:52:15 +0000 (15:52 +0900)]
e_hwc_windows: update the states of the visible windows at the windows_changes_update

Change-Id: Ic9f62d82a726a1de75b5c7a5256381a96151c8e4
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
5 years agoe_hwc_window: update the composition_types at e_hwc_window_state_set 14/191814/3
SooChan Lim [Wed, 24 Oct 2018 06:39:04 +0000 (15:39 +0900)]
e_hwc_window: update the composition_types at e_hwc_window_state_set

Change-Id: I88e5a826d9d772edc8dc1b08969d348e291e00e2
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
5 years agoe_hwc_windows: update hwc_mode and state of target window in case not accept 68/191568/3
Changyeon Lee [Thu, 18 Oct 2018 12:26:47 +0000 (21:26 +0900)]
e_hwc_windows: update hwc_mode and state of target window in case not accept

target window should be set by DEVICE type for transition

Change-Id: I13d65fa189ea2d05b924b7d8c7ebbe933cb30579
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
5 years agoe_hwc_window: initialize accepted state of target window to DEVICE. 66/191566/5
Changyeon Lee [Thu, 18 Oct 2018 12:19:51 +0000 (21:19 +0900)]
e_hwc_window: initialize accepted state of target window to DEVICE.

Change-Id: I1cfba51a32738a9eff3595d203b8abc4fc7dfae9

5 years agoe_hwc_windows: set the zpos at the _e_hwc_windows_visible_windows_update() 64/191064/8
SooChan Lim [Thu, 11 Oct 2018 04:48:45 +0000 (13:48 +0900)]
e_hwc_windows: set the zpos at the _e_hwc_windows_visible_windows_update()

Change-Id: Ieff70ac175e772c6ce1da922913f7ea963fea2b2

5 years agoe_hwc_window: check the hwc_window->ec 43/191043/5
SooChan Lim [Thu, 11 Oct 2018 02:12:33 +0000 (11:12 +0900)]
e_hwc_window: check the hwc_window->ec

e_hwc_window_activate
e_hwc_window_deactivate

Change-Id: I9ab48ba2ec7685757c08f8bb83faadfe31f5a4cf

5 years agoe_hwc_windows: change the name of the static function 94/190794/7
SooChan Lim [Fri, 5 Oct 2018 08:43:07 +0000 (17:43 +0900)]
e_hwc_windows: change the name of the static function

Change-Id: Ie64793d2fa70dbc23653cf4582b0f9bcdc158e90

5 years agoe_hwc_window: add e_hwc_window_device_state_available_check 61/190761/5
SooChan Lim [Fri, 5 Oct 2018 06:48:37 +0000 (15:48 +0900)]
e_hwc_window: add e_hwc_window_device_state_available_check

Change-Id: I241587e7c14869c408853949e6829855cca9e117

5 years agoe_hwc_windows: set the states in _e_hwc_windows_states_evaluate function 58/190758/5
SooChan Lim [Fri, 5 Oct 2018 06:29:43 +0000 (15:29 +0900)]
e_hwc_windows: set the states in _e_hwc_windows_states_evaluate function

refactor the _e_hwc_windows_states_evaluate()
The comopsition update has to be done in this function and
let the libtdm know the composition type of the tdm_hwc_windows

Change-Id: I727060868bd434b7350f8066b3450f72e91cc86f

5 years agoe_hwc_windows: remove _e_hwc_windows_composition_evaluate 44/190744/5
SooChan Lim [Fri, 5 Oct 2018 05:00:35 +0000 (14:00 +0900)]
e_hwc_windows: remove _e_hwc_windows_composition_evaluate

Change-Id: I3d316dbb9019bd4feaba5756696bb796b69f5878

5 years agoe_hwc_windows: remove the transition at hwc 58/190658/7
SooChan Lim [Fri, 5 Oct 2018 02:55:50 +0000 (11:55 +0900)]
e_hwc_windows: remove the transition at hwc

The transition at hwc is not used.

Change-Id: Ib23a0e682426ebfccef7ede5628a4aa4afa24211

5 years agoe_hwc_windows: remove two static functions 43/190743/4
SooChan Lim [Fri, 5 Oct 2018 02:38:08 +0000 (11:38 +0900)]
e_hwc_windows: remove two static functions

and reduce the for-loop interatrion

Change-Id: I141be389799c7675e523183e44fb47003fc6fb62

5 years agoe_hwc_window: replace api. 42/190742/4
SooChan Lim [Fri, 5 Oct 2018 02:29:58 +0000 (11:29 +0900)]
e_hwc_window: replace api.

replace e_hwc_window_render_target_set to
e_hwc_window_render_target_update

Change-Id: Iab754b3544516c9030738b65098458a7b104865d

5 years agoe_hwc_window: change the constraints api. 41/190741/4
SooChan Lim [Fri, 5 Oct 2018 01:38:35 +0000 (10:38 +0900)]
e_hwc_window: change the constraints api.

change the e_hwc_window_constraints_set to
e_hwc_window_constraints_update

Change-Id: I0e37efef39724e34b3b16014d64550c971bbc3ba

5 years agoe_hwc_windows: remove _e_hwc_windows_activation_states_update 40/190740/4
SooChan Lim [Thu, 4 Oct 2018 11:31:09 +0000 (20:31 +0900)]
e_hwc_windows: remove _e_hwc_windows_activation_states_update

for reducing the for-loop iterartion of the hwc_windows

Change-Id: I345421733c68ecf787e9e0dc4adb6fe8e77757e6

5 years agoenlightenment_info: add an information for map state 14/191514/5
Doyoun Kang [Thu, 18 Oct 2018 00:32:31 +0000 (09:32 +0900)]
enlightenment_info: add an information for map state

Change-Id: I0830ff6d57d7fa247a1985b02f8b36bc4d79ae0f

5 years agoe_comp: job handler(_cb_update) make no update if ec pixmap size is wrong 22/191622/3
Juyeon Lee [Fri, 19 Oct 2018 05:31:48 +0000 (14:31 +0900)]
e_comp: job handler(_cb_update) make no update if ec pixmap size is wrong

if commit wl_buffer is null buffer attached(means explicit hide request)
or if commit wl_buffer is invalid,
than cw object make no updates and let it as it is.
if server make cw object unredirected in above condition, as a result
it never updated on screen on show request, due to unredirect condition.

Change-Id: I4003d360982ed5e821012ff5bd6ba2ac72ba875e

5 years agoe_policy_visibility: check map state of above window in _e_policy_check_above_alpha_o... 28/191928/1
Doyoun Kang [Thu, 25 Oct 2018 12:36:25 +0000 (21:36 +0900)]
e_policy_visibility: check map state of above window in _e_policy_check_above_alpha_opaque

There was a bug that a window which was obscured by alpha opaque window was iconified.

[TOP] A win (32bit) -> B win (unmapped) -> C win [BOTTOM]
If "A win" change its opaque state to true, we expect that "C win" maintain unicoic state
and just change visibility value to fully-obscured.

But, there was no check code to above window's map state, "C win" was changed to iconic
and fully-obscured.

This patch fixes this problem.

Change-Id: I450521110681929ddf7898eea30db685e7a8609a

5 years agoe_xdg_shell_v6: check null for shell resources 17/191917/2
Juyeon Lee [Thu, 25 Oct 2018 08:54:01 +0000 (17:54 +0900)]
e_xdg_shell_v6: check null for shell resources

sometimes, zxdg shell destroy is made at the same time of conifugration changes
   zxdg_toplevel_v6_destroy() --> To destroy zxdg_toplevel_v6 resource.
   tizen_policy_lower()  --> to generate configure event from enlightenment

Change-Id: I0e2a960313da4a78d181c8878b8fa6e5985455d4

5 years agoe_policy_visibility: fix bug for changing iconic state incorrectly 48/191448/1
Doyoun Kang [Wed, 17 Oct 2018 07:53:24 +0000 (16:53 +0900)]
e_policy_visibility: fix bug for changing iconic state incorrectly

There was a bug that the fully obscured window was uniconified and iconified as below case.

[top] alpha-opaque window -> A win -> B win -> C win [bottom]

In above stack, when "B win" is lowered/hidden, then "C win" is changed to uniconic and iconic
state for a moment.
We fixed code not to change iconic state.

Change-Id: Ibd742f972c9b189e28185837eee85db0a941fdad

5 years agoe_devicemgr: do not query input devices when initializing devicemgr 40/191340/1 submit/tizen/20181016.083927
JengHyun Kang [Tue, 16 Oct 2018 06:46:29 +0000 (15:46 +0900)]
e_devicemgr: do not query input devices when initializing devicemgr

Change-Id: I634277a92b5411cedab6be4048c0bbae4ca8526b

5 years agoe_policy_visibility: check the ec's force_obscured flag in _e_vis_ec_activity_check() 17/191117/1 accepted/tizen/5.0/unified/20181102.024347 accepted/tizen/unified/20181012.083507 submit/tizen/20181011.124722 submit/tizen_5.0/20181101.000006
Doyoun Kang [Thu, 11 Oct 2018 10:52:31 +0000 (19:52 +0900)]
e_policy_visibility: check the ec's force_obscured flag in _e_vis_ec_activity_check()

There was a bug that the force_obscured window was uniconified and resumed by a pre-unobscured
visibility event as below sequence.

e_policy_visibility_client_lower/hide/iconify() -> _e_vis_ec_below_uniconify()

While handling _e_vis_ec_below_uniconify(), we need checking the force_obscured flag of a below ec
to skip uniconify it.
So, we add checking code in _e_vis_ec_activity_check().

Change-Id: I09485c6ef091e3459fb05496fdc04d61e50cbe69

5 years agoe_policy_visibility: fix bug for sending pre-unobsucred event 96/190896/2 submit/tizen/20181010.230904
Doyoun Kang [Mon, 8 Oct 2018 10:51:40 +0000 (19:51 +0900)]
e_policy_visibility: fix bug for sending pre-unobsucred event

There was a bug that the pre-unobscured event was sent to the window which was
obscured by alpha-opaque window.

[top] alpha-opaque window -> A win -> B win [bottom]

In above stack, when "A win" is lowered/hidden, then "B win" is chagned to uniconic
and must maintain its visibility to fully-obscured.
So, e must not send a pre-unobscured event to "B win".

But before this patch, e sent a pre-unobscured event to "B win".
We fixes this bug.

Change-Id: If6835790442d619ec0aac2dfa1659e5f0f96729a

5 years agoe_plane_renderer: avoid window map again for unwanted app 17/190817/3 accepted/tizen/unified/20181007.233057 submit/tizen/20181005.112645
Gwanglim Lee [Fri, 5 Oct 2018 11:22:52 +0000 (20:22 +0900)]
e_plane_renderer: avoid window map again for unwanted app

Change-Id: I856c1f4bdacbd670226ef745690565adb666c4af

5 years agoe_comp_wl_shell: check iconify by client before sending pre-unobscured event 48/190648/1
Doyoun Kang [Thu, 4 Oct 2018 10:35:54 +0000 (19:35 +0900)]
e_comp_wl_shell: check iconify by client before sending pre-unobscured event

There was a bug that the iconic window got the pre-unobscured visibility event when it requested to map window.
In this case, e doesn't send the pre-unobsucred event because its window is in iconic state.

Change-Id: I7d42ef99117c1e07756e4d05ebafe32ba2e6c106

5 years agoe_comp_wl: fix dereference after null check 98/190398/1 accepted/tizen/unified/20181002.093320 accepted/tizen/unified/20181005.012431 submit/tizen/20181001.111053 submit/tizen/20181004.045459
Juyeon Lee [Mon, 1 Oct 2018 11:36:52 +0000 (20:36 +0900)]
e_comp_wl: fix dereference after null check

Change-Id: Icd302ae9a7be0ceddaaa9f4e18c2dc017e09afd9

5 years agoe_hwc_windows: remove e_hwc_windows_get function 92/190392/5
SooChan Lim [Mon, 1 Oct 2018 10:35:11 +0000 (19:35 +0900)]
e_hwc_windows: remove e_hwc_windows_get function

Change-Id: I06988349e125def6202d974350a6de45f8c87aac

5 years agoe_hwc_windows: refactor _e_hwc_windows_evaluate(). 89/190389/6
SooChan Lim [Mon, 1 Oct 2018 10:07:09 +0000 (19:07 +0900)]
e_hwc_windows: refactor _e_hwc_windows_evaluate().

Change-Id: Iccc36c58746e0d581afc2544a80ac77802adc4cd

5 years agoe_hwc_windows: change some symbol name 88/190388/3
SooChan Lim [Mon, 1 Oct 2018 09:52:19 +0000 (18:52 +0900)]
e_hwc_windows: change some symbol name

Change-Id: Ic755daeac40176ad9296feaeed01e064ad93a3b7

5 years agoe_hwc_windows: change some logs 87/190387/3
SooChan Lim [Mon, 1 Oct 2018 09:41:52 +0000 (18:41 +0900)]
e_hwc_windows: change some logs

Change-Id: I56ff4674dcf6a6cbb53034b8f23bd83e79d5115c

5 years agoe_hwc_windows: put the windows iteration in _e_hwc_windows_offscreen_commit() 86/190386/3
SooChan Lim [Mon, 1 Oct 2018 09:39:49 +0000 (18:39 +0900)]
e_hwc_windows: put the windows iteration in _e_hwc_windows_offscreen_commit()

Change-Id: Ie9f3809504b0d8ce4f37e1e44b24dd758084a2bb

5 years agoe_hwc_windows: remove the visible_windows_list at the function parameter 85/190385/3
SooChan Lim [Mon, 1 Oct 2018 08:12:24 +0000 (17:12 +0900)]
e_hwc_windows: remove the visible_windows_list at the function parameter

get the visible_windows from the hwc->windows when the
function needs it.

Change-Id: I1d91560f21eeb9ac1ad88658e93ec77916925556

5 years agoe_hwc_windows: remove _e_hwc_windows_compsitions_update function 84/190384/3
SooChan Lim [Mon, 1 Oct 2018 07:54:20 +0000 (16:54 +0900)]
e_hwc_windows: remove _e_hwc_windows_compsitions_update function

reduce the iteration of the visible_windows

Change-Id: Id4e15b1694fa0c3e7c08f99e1456a197785b90a1

5 years agoe_hwc_windows: move the acceptable_check code 83/190383/2
SooChan Lim [Mon, 1 Oct 2018 07:36:00 +0000 (16:36 +0900)]
e_hwc_windows: move the acceptable_check code

move the acceptable_check code into the
 _e_hwc_windows_states_evaluate function

Change-Id: I3d176a56039ff622dae2d7abfe9bd3b223943b69

5 years agoe_hwc_windows: change the condition to check the gl_composite. 82/190382/2
SooChan Lim [Mon, 1 Oct 2018 07:18:58 +0000 (16:18 +0900)]
e_hwc_windows: change the condition to check the gl_composite.

Change-Id: Ia5b5f0cf4137ff1225b7dd8b47b80997c0ab7cb4

5 years agoe_client: check input regions before send touch cancel event 96/190396/1
JengHyun Kang [Mon, 1 Oct 2018 11:06:01 +0000 (20:06 +0900)]
e_client: check input regions before send touch cancel event

Change-Id: I501bf9e86ccf5e9414df8665b6a0b7a2960529dd

5 years agoe_hwc_window: change the tdm_hwc_window symbol and some name 91/190291/3
SooChan Lim [Mon, 1 Oct 2018 00:23:09 +0000 (09:23 +0900)]
e_hwc_window: change the tdm_hwc_window symbol and some name

change the tdm_hwc_window_get_preparations to the tdm_hwc_window_get_constraints
change the preparation to the constraint

Change-Id: I854b013a3845dadafcd47b5372caf58c4735745c

5 years agoe_hwc_windows: add _e_hwc_windows_release_commit_data() 00/190200/2
SooChan Lim [Fri, 28 Sep 2018 06:11:15 +0000 (15:11 +0900)]
e_hwc_windows: add _e_hwc_windows_release_commit_data()

Change-Id: If50cc4cc4bb0ffdb87cad013050c7a568ea941c8

5 years agoe_hwc_windows: add _e_hwc_windows_aquire_commit_data() 99/190199/2
SooChan Lim [Fri, 28 Sep 2018 06:08:00 +0000 (15:08 +0900)]
e_hwc_windows: add _e_hwc_windows_aquire_commit_data()

Change-Id: Ia5e06e319e0af927036ffcd5760793c2bb128453

5 years agoe_hwc_windows: fix the wrong parameter 98/190198/2
SooChan Lim [Fri, 28 Sep 2018 06:00:06 +0000 (15:00 +0900)]
e_hwc_windows: fix the wrong parameter

Change-Id: If771cf79f3a61bf49b6cba8ad777f1c3c481e435

5 years agoe_devicemgr: support a subclass device change event 43/189443/2 accepted/tizen/unified/20180927.174508 submit/tizen/20180927.080107
JengHyun Kang [Tue, 18 Sep 2018 01:01:28 +0000 (10:01 +0900)]
e_devicemgr: support a subclass device change event

Change-Id: I987e531d7f8aef82434473e612b9ca9e735616cf

5 years agoe_plane: set rederer to commit data in case unset commit 39/189839/2 accepted/tizen/unified/20180927.073805 submit/tizen/20180927.045229
Changyeon Lee [Fri, 21 Sep 2018 05:35:36 +0000 (14:35 +0900)]
e_plane: set rederer to commit data in case unset commit

Change-Id: I2a6a4bb185e661bb5bc8c31c8deb801df289331e

5 years agoe_hwc_windows: change some comment 03/189403/4
SooChan Lim [Mon, 17 Sep 2018 10:45:34 +0000 (19:45 +0900)]
e_hwc_windows: change some comment

Change-Id: Id96989dfc393546e6258a2eb73d6d95986b8963f

5 years agoe_hwc_window: get the visible windows in the _e_hwc_windows_visible_windows_updates 77/189377/5
SooChan Lim [Mon, 17 Sep 2018 08:52:24 +0000 (17:52 +0900)]
e_hwc_window: get the visible windows in the _e_hwc_windows_visible_windows_updates

Change-Id: I720253ba7815ced1b956a646b12cada973bf5e04

5 years agoe_hwc_window: make a static function. 61/189361/3
SooChan Lim [Mon, 17 Sep 2018 07:58:50 +0000 (16:58 +0900)]
e_hwc_window: make a static function.

e_hwc_window_target_window_ee_rendered_hw_list_get function is not
used outside the file

Change-Id: Ib44c69c9f637102a392d687057e4f73a8ddadccb

5 years agoe_hwc_window: fix the typo 58/189358/4
SooChan Lim [Mon, 17 Sep 2018 07:49:11 +0000 (16:49 +0900)]
e_hwc_window: fix the typo

Change-Id: I38de4e3e7297a87ebdd501a7064623562a6f94ce

5 years agoe_comp_object: check not_raise of ec when defer_focus_set in show_helper 95/189595/5 accepted/tizen/unified/20180919.142043 submit/tizen/20180919.095245
JunSeok, Kim [Wed, 19 Sep 2018 05:04:41 +0000 (14:04 +0900)]
e_comp_object: check not_raise of ec when defer_focus_set in show_helper

There was a bug with uniconify by window manager.
Uniconified window by wm takes focus from window that really needs the focus.
So, check ec's not_raise flag to prevent this situation during defer_focus set in show sequence.

Change-Id: Ieb2fbe973c882939b5e85d41fe5ea28f91cd70f1

5 years agoe_client: Added function for check above ec has focus 94/189594/4
JunSeok, Kim [Wed, 19 Sep 2018 05:04:05 +0000 (14:04 +0900)]
e_client: Added function for check above ec has focus

Change-Id: I7fdea6d0f594c6840563ac7da2318ce2891b3b45

5 years agoe_info: print dump buffers directory name 09/189509/1
Junkyeong Kim [Tue, 18 Sep 2018 08:20:18 +0000 (17:20 +0900)]
e_info: print dump buffers directory name

Change-Id: I2462f3f18783156d8be777a04d564ecb92bec255
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
5 years agoe_comp_wl: fix build warning 99/189399/1
Juyeon Lee [Mon, 17 Sep 2018 10:39:21 +0000 (19:39 +0900)]
e_comp_wl: fix build warning

Change-Id: I31f5cb71505643cd5977dfd975cfe52af9374346

5 years agoquickpanel: add qp_add_on_desk_smart configuration 68/189068/4
Doyoun Kang [Thu, 13 Sep 2018 07:05:53 +0000 (16:05 +0900)]
quickpanel: add qp_add_on_desk_smart configuration

We added a configuration to choose the operation of quickpanel.
One is added on the desk smart object, the other is stand alone.
In stand alone, the quickpanel must change the geometry of its objects.
We added this code also.

This patch is depends on the below patch.
- e_desk: add E_EVENT_DESK_GEOMETRY_CHANGE event

Change-Id: I4f66a002e2e1bd1d4f19a434ecc238cf15b09453

5 years agoe_hwc_planes: make some function to be static functions 97/189097/3
SooChan Lim [Thu, 13 Sep 2018 09:27:44 +0000 (18:27 +0900)]
e_hwc_planes: make some function to be static functions

The functions below is to be the static functions.

EINTERN Eina_Bool            e_hwc_planes_usable(E_Hwc *hwc);
EINTERN void                 e_hwc_planes_begin(E_Hwc *hwc);
EINTERN void                 e_hwc_planes_changed(E_Hwc *hwc);

Change-Id: I1cc2f9119c09e9ea0b378216541085d924b6d617

5 years agoe_hwc: move e_hwc_apply to e_hwc_planes_apply 96/189096/3
SooChan Lim [Thu, 13 Sep 2018 09:17:09 +0000 (18:17 +0900)]
e_hwc: move e_hwc_apply to e_hwc_planes_apply

The e_hwc_planes_apply() is called in the e_output_commit
when the hwc policy is E_HWC_POLICY_PLANES.
The hwc policy is decided inside e_output_commit.

Change-Id: Ib8b673e6325939de0e8eb33f21abac5832d68277

5 years agoe_plane: get every time available formats from tdm_layer 80/189080/1
Changyeon Lee [Thu, 13 Sep 2018 02:55:30 +0000 (11:55 +0900)]
e_plane: get every time available formats from tdm_layer

pointer of formats which get from tdm_layer is possible freed.
so e_plane doens't store formats.

Change-Id: I46f52bfcdc9174ce667bf27d61710b6eeaca88c4

5 years agoe_comp: use e_comp_client_override_add/del in case client needs compositing 79/189079/1
Changyeon Lee [Thu, 13 Sep 2018 07:01:57 +0000 (16:01 +0900)]
e_comp: use e_comp_client_override_add/del in case client needs compositing

Change-Id: Id37646c52d7baded448221af60ddd05eba2b42a6

5 years agoe_comp: add e_comp_client_override_add/del 78/189078/1
Changyeon Lee [Thu, 13 Sep 2018 06:58:42 +0000 (15:58 +0900)]
e_comp: add e_comp_client_override_add/del

e_comp_override_add/del is called to unset all hwc plane.
but some case doesn't need to unset all hwc plane.
hwc plane is unset if ec of hwc is locate to below client
which wanted to compositing.

Change-Id: I2bf59e158ddb50953091b85db435e90364e896d3

5 years agoe_comp_wl: lower log level for POSSIZE 06/189006/1 accepted/tizen/unified/20180914.080358 submit/tizen/20180913.113141
Juyeon Lee [Wed, 12 Sep 2018 10:44:20 +0000 (19:44 +0900)]
e_comp_wl: lower log level for POSSIZE

Change-Id: Id4daeaa4a0c6b6f9ea28dd0269ac41822f27a6a0

5 years agoe_comp_wl: update serial when wl_surface_commit 04/187004/7 accepted/tizen/unified/20180913.063835 submit/tizen/20180912.042521
Juyeon Lee [Fri, 17 Aug 2018 07:04:00 +0000 (16:04 +0900)]
e_comp_wl: update serial when wl_surface_commit

by using wayland_tbm_server_buffer_get_buffer_serial,
get serial number from wl_buffer
and assign it into ec->surface_sync.serial

Change-Id: Ie84a0861fd1153e104131052a9418231c0d75735

5 years agoe_comp_wl: fix pending_geometry condition 07/188807/1 accepted/tizen/unified/20180911.055411 submit/tizen/20180910.115140 submit/tizen/20180913.064436
Juyeon Lee [Mon, 10 Sep 2018 11:45:05 +0000 (20:45 +0900)]
e_comp_wl: fix pending_geometry condition

Change-Id: I8a4a6cebd00f0314fc0409b263f881953bc58136

5 years agoe_comp_wl: pending geometry is applied once size is fit 20/186620/9
Juyeon Lee [Mon, 13 Aug 2018 02:21:09 +0000 (11:21 +0900)]
e_comp_wl: pending geometry is applied once size is fit

todo : the code will be reverted once client serial commit works

Change-Id: Ia6f38624fa6ea735acd82110f746b7831b3ee05f

5 years agoSupport tizen_move_resize iface 19/186619/11
Juyeon Lee [Mon, 13 Aug 2018 02:01:49 +0000 (11:01 +0900)]
Support tizen_move_resize iface

Client window is driven its move,resize by display server using xdg_shell.
btw some tizen application wants to make its position and size while they're shown
server received tz_position, and resized buffer in consequence so far.
but client's position, and buffer delivery does not always come to server at the
same idler loop. In that case, user could see move first, and resize after a sec.
here, added new wl protocol and make the move and resize happen at the sametime.

Change-Id: Idfa4c08fe63dae58c597f9d9076d66bba569c8c5

5 years agoe_devicemgr_inputgen: fixed null pointer dereference 90/188790/1
Gwanglim Lee [Mon, 10 Sep 2018 08:47:20 +0000 (17:47 +0900)]
e_devicemgr_inputgen: fixed null pointer dereference

Change-Id: I4d1db3a575425b1e25a6c5b17f5017fbcba8e264

5 years agoe_desk: add E_EVENT_DESK_GEOMETRY_CHANGE event 32/188732/3
Doyoun Kang [Mon, 10 Sep 2018 02:25:33 +0000 (11:25 +0900)]
e_desk: add E_EVENT_DESK_GEOMETRY_CHANGE event

Change-Id: I27b01570ed2ae2ba3a1c807ba951573de3a5cb1b

5 years agoe_client: modified e_client_geomentry_get to return valid x and y values when calling... 45/188745/1
Gwanglim Lee [Mon, 10 Sep 2018 04:42:21 +0000 (13:42 +0900)]
e_client: modified e_client_geomentry_get to return valid x and y values when calling it at the idle time.

Since there was no image buffer in e_comp_object before ec was not mapped,
e_client_geomentry_get had returned (0, 0) position value. From now, it is
changed to return x and y values of ec itself instead of returning invalid
values.

Change-Id: Ie6bfcda214b9608ea18f8511eaef8a20ea9d6a7b

5 years agoe_keyrouter: get release events from focus hook if you send key to specific surface 56/188256/4 accepted/tizen/unified/20180906.144228 submit/tizen/20180906.102505
JengHyun Kang [Mon, 3 Sep 2018 10:07:38 +0000 (19:07 +0900)]
e_keyrouter: get release events from focus hook if you send key to specific surface

Change-Id: I122c89afcce1c5a9daf10ac9426c99637f726094

5 years agoe_devicemgr: import devicemgr module to enlightenment core 15/188015/5
JengHyun Kang [Thu, 30 Aug 2018 09:39:01 +0000 (18:39 +0900)]
e_devicemgr: import devicemgr module to enlightenment core

Change-Id: If7d9a33e173d24e71ef4ae252ce9382a7f206fa4

5 years agoe_hwc: add the log of the evas engine name 68/188168/1 accepted/tizen/unified/20180904.172538 submit/tizen/20180904.022811
SooChan Lim [Mon, 3 Sep 2018 01:44:20 +0000 (10:44 +0900)]
e_hwc: add the log of the evas engine name

Change-Id: I38b1b0e95c3870f6451f5d7508609f0eefaeb1c1

5 years agoe_comp: set the avoid_afill before e_comp_screen_init 67/188167/1
SooChan Lim [Mon, 3 Sep 2018 02:08:22 +0000 (11:08 +0900)]
e_comp: set the avoid_afill before e_comp_screen_init

Change-Id: I887bc86b1c0512811af7d5281ee2a469c7207c15

5 years agohwc: add condition of hwc in case of quickpanel 95/187995/2
Changyeon Lee [Thu, 30 Aug 2018 07:37:29 +0000 (16:37 +0900)]
hwc: add condition of hwc in case of quickpanel

Change-Id: I57d86f90cc6c3f651b6dbf4ea38fd92320b24b4e

5 years agoe_comp: calculate and send touch cancel when visibility is changed during touch 72/187972/2
JengHyun Kang [Thu, 30 Aug 2018 05:21:09 +0000 (14:21 +0900)]
e_comp: calculate and send touch cancel when visibility is changed during touch

Change-Id: Ib5f1da04ce99004a4436b6430b48de0d0be36e38

5 years agoe_gesture: adding x and y coordinate in tap event 56/187956/1
JengHyun Kang [Thu, 30 Aug 2018 04:05:27 +0000 (13:05 +0900)]
e_gesture: adding x and y coordinate in tap event

Change-Id: I3948887ffa5b7533a43b72f91748a7c634b61e5b

5 years agoe_utils: fix a memory leak 64/187764/1 accepted/tizen/unified/20180829.142824 submit/tizen/20180828.083306 submit/tizen/20180828.112301
Sung-Jin Park [Tue, 28 Aug 2018 07:45:30 +0000 (16:45 +0900)]
e_utils: fix a memory leak

Change-Id: I36abc0e8546a36529f457b5e9a571173c978fb7b
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
5 years agohwc_window_queue: add missing release buffer queue 81/187381/2
Changyeon Lee [Wed, 22 Aug 2018 11:02:13 +0000 (20:02 +0900)]
hwc_window_queue: add missing release buffer queue

Change-Id: I85f4318a85567dd41aa45ca4f43c52bebba4d78d

5 years agohwc_window_queue: fix wrong argument passing 61/187361/3
Changyeon Lee [Wed, 22 Aug 2018 08:04:25 +0000 (17:04 +0900)]
hwc_window_queue: fix wrong argument passing

Change-Id: I9a7b2f0ef1ab3c690362ea5713fa0bc7f9bd62df

5 years agoe_pointer: initialize variables when hide a pointer 27/187327/3
JengHyun Kang [Wed, 22 Aug 2018 05:18:49 +0000 (14:18 +0900)]
e_pointer: initialize variables when hide a pointer

Change-Id: I9fdb3a50be329fddd3effd0241f106d0acc9d85b

5 years agohwc_windows: update preparation before update render target 76/187276/2
Changyeon Lee [Fri, 17 Aug 2018 10:54:39 +0000 (19:54 +0900)]
hwc_windows: update preparation before update render target

Change-Id: I38baa108cbb19deb0508a8281a7d281909151fd4

5 years agohwc: fix sending worng touch position when ec is transform for hwc 86/186986/3
Changyeon Lee [Wed, 8 Aug 2018 08:21:45 +0000 (17:21 +0900)]
hwc: fix sending worng touch position when ec is transform for hwc

- generally touch position is calculated with img object size(last child object of smart object).
- if ec is transform for hwc and screen rotation, img object is resized by transformed buffer
  and then evas calculate touch position with transformed size and e20 get worng touch position.
- for calculating touch position with surface size, e20 add map_input_obj and resize with surface
  size when ec is transformed
- but evas can't change evas_object which calculated (img obj->map_input_obj) when touch is pressed
- so ec isn't available hwc if client is needed transform and touch is pressed

Change-Id: Ide8d29a3f1d30c8cd69c434077c636ed90e5fe59

5 years agoe_plane_renderer: allocate reserved tsurface according to output rotation 89/186889/4
Changyeon Lee [Mon, 6 Aug 2018 08:24:21 +0000 (17:24 +0900)]
e_plane_renderer: allocate reserved tsurface according to output rotation

Conflicts:
src/bin/e_plane_renderer.c

Change-Id: Iceea0d0f2bbb2742793e64e0fb10ada5174d1263

5 years agoe_client: check mapped condition when e_client_iconify 79/187179/1
Doyoun Kang [Mon, 20 Aug 2018 11:45:53 +0000 (20:45 +0900)]
e_client: check mapped condition when e_client_iconify

There was a bug that the unmapped window was iconified by window manager.
So, we add code to check an unmap state of window in e_client_iconify function.

Change-Id: I3cc8df8d59eb0feef4e533191c54841aa0b61c76

5 years agoe_client: check mapped condition before calling evas_object_show in e_client_uniconify 76/187176/2
Doyoun Kang [Mon, 20 Aug 2018 09:59:04 +0000 (18:59 +0900)]
e_client: check mapped condition before calling evas_object_show in e_client_uniconify

The window which had unmapped and iconified by client didn't show when it called show at the first time.
We fixed this problem.

Also, this patch can resolve a bug resolved by below patch.
  - e_client: check mapped condition when e_client_uniconify
  - commit id: 632261617acada66b019931de981eed332f50f04

Change-Id: Ibc5b84ee047002e5d6ee9bfd7c4a4284ffab8174

5 years agoe_input_device: get/set udev monitor information on libinput 27/187127/6 accepted/tizen/unified/20180821.091115 submit/tizen/20180820.112831
Sung-Jin Park [Mon, 20 Aug 2018 07:18:27 +0000 (16:18 +0900)]
e_input_device: get/set udev monitor information on libinput

Change-Id: I71cc583e2f0c059137f89321529abcca9afae5d8
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
5 years agofixed a warning 52/187152/2
Gwanglim Lee [Mon, 20 Aug 2018 08:51:16 +0000 (17:51 +0900)]
fixed a warning

Change-Id: I6bfd737b116b1d6bd6dd07ac6739f73aee4b4132

5 years agoe_comp_wl_viewport: Set 'viewport->destination.mode.resource' to null when resource... 26/187126/1
Seunghun Lee [Mon, 20 Aug 2018 07:10:23 +0000 (16:10 +0900)]
e_comp_wl_viewport: Set 'viewport->destination.mode.resource' to null when resource is destroyed.

fix heap-use-after-free issue.

Change-Id: I24e0f4814f80ebf335a36934bfe88ece2cb2b985

5 years agoadd avoid_afill option 03/187003/2 accepted/tizen/unified/20180820.153936 submit/tizen/20180820.053147
SooChan Lim [Mon, 30 Jul 2018 08:31:59 +0000 (17:31 +0900)]
add avoid_afill option

The avoid_afill option is for initializing ecore_evas engine.

When the avoid_afill is 1, e20 uses the gl_tbm_ES engine.
The gl_tbm_ES engine does not fill 0xff the alpha channel even if
the depth of the ecore_evas is 24 depth and the bpp of the buffer
is 32bits.
Otherwise, the gl_tbm engine which is used when the avoid_afill is 0
(default value) fills the 0xff at the same condition.

p.s. this patch is temporary. therefore it will be revoved later.

Change-Id: I8af6e3be883d800687a8cfd893bd5f5c2555eddf

5 years agoe_comp_wl_video: fix wrong argument passing 99/186999/1
Junkyeong Kim [Fri, 17 Aug 2018 06:35:57 +0000 (15:35 +0900)]
e_comp_wl_video: fix wrong argument passing

Change-Id: Ibfb3260f557c73178c9e4ad8ea5643e8a3541ceb
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
5 years agoe_plane:remove pp_pending data only dpms off 97/186897/1
Junkyeong Kim [Thu, 16 Aug 2018 09:55:04 +0000 (18:55 +0900)]
e_plane:remove pp_pending data only dpms off

Change-Id: I011549447ba9db9fff09e89e35609d6bc6103fa0
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
5 years agoe_policy_visibility: add code to check child's uniconify_render state in intercept... 33/186733/2
Doyoun Kang [Tue, 14 Aug 2018 01:09:56 +0000 (10:09 +0900)]
e_policy_visibility: add code to check child's uniconify_render state in intercept show

There was a case that a window was waiting for uniconify_render of child window which
had done uniconify_render in intercept show function.
So, we add an additional checking code not to wait child's uniconify_render.

Change-Id: I0ae12a4dded3bb9db61db8da95d991f6217dba2e

5 years agoe_xdg_shell_v6: fix typo 43/186743/1
Seunghun Lee [Mon, 13 Aug 2018 12:21:04 +0000 (21:21 +0900)]
e_xdg_shell_v6: fix typo

Change-Id: Ia786ffb8a768c23f717f09b55e915cb8a17fad9b

5 years agoe_xdg_shell_v6: set null after destroying shell of e_client, ec will be freed. 42/186742/1
Seunghun Lee [Mon, 13 Aug 2018 11:51:18 +0000 (20:51 +0900)]
e_xdg_shell_v6: set null after destroying shell of e_client, ec will be freed.

fix memory violation, heap-use-after-free

Change-Id: I97b665e317e2e0decd8820e592fdd0e9e9505068

5 years agoe_comp_wl: accepts_focus set true at wl_surface_create instead of xdg_shell_toplevel_set 74/186674/2
JunSeok, Kim [Mon, 13 Aug 2018 07:38:26 +0000 (16:38 +0900)]
e_comp_wl: accepts_focus set true at wl_surface_create instead of xdg_shell_toplevel_set

if accepts_focus set TRUE in xdg_shell_toplevel_set can occure timing issue with focus_skip_set.
in evas_object_show, xdg_shell_toplevel_set is always set the accepts_focus to TRUE
if visibility calculation occurs before processing tizen_policy_set_focus_skip, focus will be in&out quickly.
this patch fix the issue.

Change-Id: I9441770a0c050899da32896833174dd4db709f4b

5 years agoe_input: set correct coords info following correct mt_slot 50/186550/1
JengHyun Kang [Fri, 10 Aug 2018 09:08:23 +0000 (18:08 +0900)]
e_input: set correct coords info following correct mt_slot

Change-Id: I48426afedc3c432c7664d6a71a74a43dffc036d0