platform/upstream/enlightenment.git
6 years agoe_test_helper: register ec when window is registered. 99/192299/2 accepted/tizen/unified/20181115.151628 submit/tizen/20181115.031559
JunSeok, Kim [Fri, 2 Nov 2018 05:31:21 +0000 (14:31 +0900)]
e_test_helper: register ec when window is registered.

there was so many timeout occured when e-tizen-testcase doing waitEvent.
when event occured, event callback checks their registrant's ec.
but, original code was registed ec when visibility event came up
and it makes timeout issue due to the ec isn't registed.

So, this patch register window's ec instantly to prevent timeout.

Change-Id: Id34968c58497ac9233e1d7f1f6f86c6efeb06d3c

6 years agoe_comp_wl_rsm: capture image with keyboard 18/193018/1
Doyoun Kang [Wed, 14 Nov 2018 02:21:48 +0000 (11:21 +0900)]
e_comp_wl_rsm: capture image with keyboard

Change-Id: I69fdc3d5c8b6b417ff5d4cc0b13c0c93f0e29994

6 years agoe_dbus_conn: added E_DBUS_CONN_INIT_RETRY_INTERVALS to support 42/192742/4 accepted/tizen/5.0/unified/20181115.063706 accepted/tizen/unified/20181114.074436 submit/tizen/20181114.011255 submit/tizen_5.0/20181114.012131
Gwanglim Lee [Fri, 9 Nov 2018 02:28:32 +0000 (11:28 +0900)]
e_dbus_conn: added E_DBUS_CONN_INIT_RETRY_INTERVALS to support
time intervals during retrying D-BUS connection.

If user wants to connect with D-BUS through another thread,
then we also need to check that wants to use time intervals
during retrying connection.

It is required for some systems which don't support sync call
for connecting D-BUS to avoid thread problems.

Change-Id: Id151b3fc722e34d6a52aa28d5cdfc392d76a5edb

6 years agoe_output: get touched information from e_input insteads of e_comp_wl 43/192643/4
jeon [Tue, 6 Nov 2018 09:52:15 +0000 (18:52 +0900)]
e_output: get touched information from e_input insteads of e_comp_wl

Change-Id: Ie008c2606af890a3e06600c1ea7f8f63ba692fbb

6 years agoe_input: support a function to get currently touched fingers 36/192636/2
jeon [Wed, 7 Nov 2018 07:40:14 +0000 (16:40 +0900)]
e_input: support a function to get currently touched fingers

  - unsigned int ecore_drm_device_touch_pressed_get()

Change-Id: Ic5691f34eff430a2ccc4374ab2ff3e66a1886691

6 years agoe_plane_renderer: get the transform before checking config.rotation 02/192902/1
SooChan Lim [Mon, 12 Nov 2018 12:56:10 +0000 (21:56 +0900)]
e_plane_renderer: get the transform before checking config.rotation

Change-Id: I4f19aaa9d4127d426af00d1031391fac51ef4f6e

6 years agoe_hwc_planes: fix the typo 01/192901/1
SooChan Lim [Mon, 12 Nov 2018 12:52:19 +0000 (21:52 +0900)]
e_hwc_planes: fix the typo

Change-Id: I060c649d7e76ec7e12eff9361291ccfb6fec8b55

6 years agoe_hwc_planes: allow begin hwc even if nocomp_override is positive 55/192855/1 accepted/tizen/unified/20181113.085937 submit/tizen/20181112.074735
Changyeon Lee [Fri, 9 Nov 2018 09:14:58 +0000 (18:14 +0900)]
e_hwc_planes: allow begin hwc even if nocomp_override is positive

some hwc module want to use hwc even if nocomp_override is positive.
core policy of hwc set all plane to null when nocomp_override is positive.
if hwc module prepare client to plane, hwc mode is begined.

Change-Id: I6bef487acac93698570c177394e3df02bbe07985

6 years agoe_plane: force render when set/unset_counter are set 54/192854/1
Changyeon Lee [Mon, 29 Oct 2018 05:57:28 +0000 (14:57 +0900)]
e_plane: force render when set/unset_counter are set

Change-Id: I4287be9aa07e364dd318129774da798ad71b115f

6 years agoe_plane_renderer: send output_transform event regardless of current transform 53/192853/1
Changyeon Lee [Thu, 8 Nov 2018 10:05:54 +0000 (19:05 +0900)]
e_plane_renderer: send output_transform event regardless of current transform

Change-Id: Ia104e0b2ce31bf4150c15f6215ffa97d24c22e89

6 years agoe_hwc: unset plane if ec of plane and ec are same 52/192852/1
Changyeon Lee [Fri, 9 Nov 2018 08:55:01 +0000 (17:55 +0900)]
e_hwc: unset plane if ec of plane and ec are same

Change-Id: Ia456f707c5b6e5deb1e1b17a64060ac7b183a56f

6 years agoe_hwc_windows: fix the transition state 59/192759/3
SooChan Lim [Fri, 9 Nov 2018 06:07:46 +0000 (15:07 +0900)]
e_hwc_windows: fix the transition state

Change-Id: Ia917d5dcb6a2ebf9cd4f8c47808593235bf8cbff

6 years agoe_hwc_windows: change the mode_get to the mode_update 57/192757/2
SooChan Lim [Fri, 9 Nov 2018 05:59:16 +0000 (14:59 +0900)]
e_hwc_windows: change the mode_get to the mode_update

Change-Id: I65289d69490de6a4aa04c551c656bf3617b1657d

6 years agoe_hwc_window: change the goto label 56/192756/2
SooChan Lim [Fri, 9 Nov 2018 05:39:31 +0000 (14:39 +0900)]
e_hwc_window: change the goto label

Change-Id: I0e5e8cb00a441f84d9d2d3fa2516597de27dedfa

6 years agoe_hwc_window_queue: refactor the e_hwc_window_queue 55/192755/2
SooChan Lim [Mon, 5 Nov 2018 06:24:40 +0000 (15:24 +0900)]
e_hwc_window_queue: refactor the e_hwc_window_queue

Change-Id: I2a971e08967f54a8eb33989f901f3c3952e33fd5

6 years agoe_client: consider ec's zone size when check fully contain by above 58/192658/2
JunSeok, Kim [Wed, 7 Nov 2018 10:05:04 +0000 (19:05 +0900)]
e_client: consider ec's zone size when check fully contain by above

there was a irregular focus bug during check fully contain by above.
when the below ec's size is bigger then above ec and display size,
the function returns it isn't fully covered by above window despite the above is fullsize window.

so, corrected this bug with clip the below ec's size to their zone size.

Change-Id: I0e136409ee85b939eaf39d307e0b90fbcbcb800e

6 years agoe_devicemgr: use ecore event handler insteads of event filter 15/191415/5 accepted/tizen/5.0/unified/20181108.074417 submit/tizen/20181107.044109 submit/tizen_5.0/20181107.044303
JengHyun Kang [Wed, 17 Oct 2018 02:00:48 +0000 (11:00 +0900)]
e_devicemgr: use ecore event handler insteads of event filter

Change-Id: Ieee6c559fed96ab67b0c174d1c1b03bd5437bec0

6 years agoe_input: do not use E_INPUT_EVENT_INPUT_DEVICE_ADD/DEL events 54/191054/9
JengHyun Kang [Thu, 11 Oct 2018 05:37:32 +0000 (14:37 +0900)]
e_input: do not use E_INPUT_EVENT_INPUT_DEVICE_ADD/DEL events

 - use ECORE_EVENT_DEVICE_ADD/DEL events for notify device add/remove

Change-Id: I17d3b742693508c7f472acb50a57c15853e1bc02

6 years agoe_hwc_window_queue: move the user_pending_set_add call 44/192344/4
SooChan Lim [Fri, 2 Nov 2018 09:55:02 +0000 (18:55 +0900)]
e_hwc_window_queue: move the user_pending_set_add call

Change-Id: I38e4798e41279413a72849a1e274e49fdb4f85c9

6 years agoe_hwc_window_queue: change the internal function names. 29/192329/3
SooChan Lim [Fri, 2 Nov 2018 08:00:35 +0000 (17:00 +0900)]
e_hwc_window_queue: change the internal function names.

Change-Id: I26787310517ddee43e09a8693c6fe7fa5a9a0a2e

6 years agoe_hwc_window_queue: switch the pending to the waiting 24/192324/2
SooChan Lim [Fri, 2 Nov 2018 07:36:19 +0000 (16:36 +0900)]
e_hwc_window_queue: switch the pending to the waiting

The pending means that the queue does not decide the candidate user yet.
The waiting means that the queue decide the candidate user and
the queue is waiting the exported buffer to the candidate user.

Change-Id: I1cd4d0d2526d7b3e6b8fc51882213e67afb61269

6 years agoe_hwc_window_queue: refactor the code 96/192296/3
SooChan Lim [Fri, 2 Nov 2018 05:25:05 +0000 (14:25 +0900)]
e_hwc_window_queue: refactor the code

Change-Id: I230dd04cb99cc5910695b3d3c7b2eba7907fbd4e

6 years agoe_hwc_window_queue: Do not check the cqueue in the e_hwc_window_queue_user_set 94/192294/2
SooChan Lim [Fri, 2 Nov 2018 05:08:47 +0000 (14:08 +0900)]
e_hwc_window_queue: Do not check the cqueue in the e_hwc_window_queue_user_set

check the cqueue at the call of e_hwc_window_queue_user_set

Change-Id: Ic8af48923f13f55accd46cf64819887b9c1b8ed9

6 years agoe_hwc_window_queue: use e_hwc_window_is_target 85/192285/2
SooChan Lim [Fri, 2 Nov 2018 04:37:45 +0000 (13:37 +0900)]
e_hwc_window_queue: use e_hwc_window_is_target

Change-Id: I28720a6e3b3c06588f61507016b8ffe4b7908dc7

6 years agoe_hwc_window_queue: remove e_hwc_window_queue_target_set function 83/192283/2
SooChan Lim [Fri, 2 Nov 2018 04:28:59 +0000 (13:28 +0900)]
e_hwc_window_queue: remove e_hwc_window_queue_target_set function

e_hwc_window_queue_target_set is not used.

Change-Id: Ie1ea6a729155311733778594fefdd6596577cabb

6 years agoe_hwc_window_queue: check the validation of the _hwc_winq_mgr at the EINTERN functions 76/192276/2
SooChan Lim [Fri, 2 Nov 2018 01:52:38 +0000 (10:52 +0900)]
e_hwc_window_queue: check the validation of the _hwc_winq_mgr at the EINTERN functions

- check the validation of the _hwc_winq_mgr at the EINTERN functions
- use the global variable and do not cast the local variable

Change-Id: Ib872bfc84aeafa4d72d279c2b856093ba3052a0e

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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>
6 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>
6 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>
6 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>
6 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>
6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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>
6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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