platform/upstream/enlightenment.git
3 years agoe_policy_wl: send the unreigster event when tzsh_service is destroyed 91/245791/4
Doyoun Kang [Thu, 15 Oct 2020 23:41:46 +0000 (08:41 +0900)]
e_policy_wl: send the unreigster event when tzsh_service is destroyed

There was a bug that sents a wrong event (service_register) when a tzsh(tizen-ws-shell)
service window was destroyed.
We fix this to send a service_unregister event.

Change-Id: I2d2efe9b63805f50dcb0d49046955d4dc6782f88

3 years agoe_service_softkey: add null check for allocated pointer 56/245756/2 submit/tizen/20201015.093949
Junseok, Kim [Thu, 15 Oct 2020 10:00:26 +0000 (19:00 +0900)]
e_service_softkey: add null check for allocated pointer

Change-Id: If845d13d4e447e39f0a46c41a8e037db3c413ebd
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_service_softkey: pending visible request if there is no softkey service 10/245710/5
Junseok, Kim [Wed, 14 Oct 2020 12:39:45 +0000 (21:39 +0900)]
e_service_softkey: pending visible request if there is no softkey service

when the softkey service is not launched yet, hide request from client can ignored.
for fix this issue, this patch pending visible request if there is no softkey service.
and restore requset after softkey service launch.

Change-Id: I38c9cd3aa86ffe3638c68d60907fb318d726c884
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_comp_object: update comp_object when it is shown 36/245336/2
Changyeon Lee [Wed, 7 Oct 2020 07:16:06 +0000 (16:16 +0900)]
e_comp_object: update comp_object when it is shown

if comp object is shown in idle enterer before(E_CLIENT_HOOK_EVAL_FETCH),
it is rendered in idle callback without native surface and
compositor shows an empty frame if other objects aren't shown
because job callback of e_comp called at the next loop.
it causes a visual defect when windows are switched.

Change-Id: I336f5bb0ec941fbd23407a1c7488de25c96a0766

3 years agoe_hwc: add ecore event when hwc property is changed 17/245217/2
Changyeon Lee [Mon, 5 Oct 2020 11:53:05 +0000 (20:53 +0900)]
e_hwc: add ecore event when hwc property is changed

if hwc property is changed in callback of vconf,
idle enterer callback is called late.

Change-Id: Ie8890fd0d240eaa62054998593a01d662c0d17e3

3 years agoe_hwc_windows: add e_hwc_sync_callback_add/del 53/244753/6
Changyeon Lee [Wed, 23 Sep 2020 11:18:54 +0000 (20:18 +0900)]
e_hwc_windows: add e_hwc_sync_callback_add/del

Change-Id: Id04883574406ddc642b2e068479202ffccbb5958

3 years agoe_info_server: fix to include mcheck.h for mtrace()/muntrace() 37/244737/1 tizen_6.0_backup_201110 accepted/tizen/6.0/unified/20201030.105001 accepted/tizen/6.0/unified/hotfix/20201103.000631 accepted/tizen/unified/20200924.072541 submit/tizen/20200923.234521 submit/tizen_6.0/20201029.205501 submit/tizen_6.0_hotfix/20201102.192901 submit/tizen_6.0_hotfix/20201103.115101 tizen_6.0.m2_release
Sung-Jin Park [Wed, 23 Sep 2020 23:30:54 +0000 (08:30 +0900)]
e_info_server: fix to include mcheck.h for mtrace()/muntrace()

Change-Id: I69ea9594e14221508749879b505b39b079008c1b
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
3 years agoe_info_server: add NULL check of return value from evas_object_data_get() 36/244736/1
Sung-Jin Park [Wed, 23 Sep 2020 22:44:27 +0000 (07:44 +0900)]
e_info_server: add NULL check of return value from evas_object_data_get()

Change-Id: I271bbb5385823670c26a9375a608497eca1ffb98
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
3 years agoe_info_server/client: add mtrace option 01/244601/3
Sung-Jin Park [Tue, 22 Sep 2020 08:12:55 +0000 (17:12 +0900)]
e_info_server/client: add mtrace option

Change-Id: Ie642ca21c31c7f16bd8cab423133bc26186933c5
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
3 years agoe_policy: set ec's lock_client_location to 0 while handling user geometry 17/244517/2 accepted/tizen/unified/20200922.230457 submit/tizen/20200922.110837
Doyoun Kang [Mon, 21 Sep 2020 07:28:19 +0000 (16:28 +0900)]
e_policy: set ec's lock_client_location to 0 while handling user geometry

There was a bug that the window didn't move when user geometry flag set, unset and set.
This was because the lock_client_location set to TRUE.
So, we fix code to set lock_client_location to FALSE when the user geometry flag is set.

Change-Id: I609f7dd9cbdfde764915bf9a59d39a8a91e1a314

3 years agoe_info_server: check ec NULL before use 25/244425/2 accepted/tizen/unified/20200922.090900 submit/tizen/20200922.031556
Junkyeong Kim [Fri, 18 Sep 2020 09:20:23 +0000 (18:20 +0900)]
e_info_server: check ec NULL before use

Change-Id: I637abea2c4e1d3c731bdc2febca9b7f860487bf0
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
3 years agoe_hwc_windows: fix leak commit_data_list of windows 52/244552/1
Changyeon Lee [Mon, 21 Sep 2020 12:12:05 +0000 (21:12 +0900)]
e_hwc_windows: fix leak commit_data_list of windows

Change-Id: Ib0765f0a714b0bc8285bda9c7ace14cffacb5716

3 years agoe_test_helper: add e_dbus_conn_shutdown for pair with init 16/244516/1
Junseok, Kim [Mon, 21 Sep 2020 07:25:47 +0000 (16:25 +0900)]
e_test_helper: add e_dbus_conn_shutdown for pair with init

Change-Id: Icf780eb0a36e215867c3576dadc797be245a8c2d
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_info_server: remove duplicated eldbus_shutdown 14/244514/1
Junseok, Kim [Mon, 21 Sep 2020 07:22:38 +0000 (16:22 +0900)]
e_info_server: remove duplicated eldbus_shutdown

eldbus already shutdown as e_dbus_conn_shutdown() so remove it.

Change-Id: Idc31bf39262ad1b90a1c22c1b43b0902dfceaf1c
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_desk: do not apply zoom to window which set zoom_skip property 45/244345/2 accepted/tizen/unified/20200918.073729 submit/tizen/20200917.223622
Doyoun Kang [Thu, 17 Sep 2020 11:03:36 +0000 (20:03 +0900)]
e_desk: do not apply zoom to window which set zoom_skip property

There was a bug that the window which set a zook_skip property was applied the desk zoom.
This patch fixes it

Change-Id: I69494095a9b864358326daad36f251a8f5585669

3 years agoe_policy: set ec's lock_client_size to 0 while handling user geometry 42/244342/1
Doyoun Kang [Thu, 17 Sep 2020 11:00:59 +0000 (20:00 +0900)]
e_policy: set ec's lock_client_size to 0 while handling user geometry

There was a bug that the window didn't resize when user geometry flag set, unset and set.
This was because the lock_client_size set to TRUE.
So, we fix code to set lock_client_size to FALSE when the user geometry flag is set.

Change-Id: I29f58f81547ceb42b9a30c359f6c9e3436031109

3 years agoe_devicemgr: remove unused values 14/244214/1 accepted/tizen/unified/20200916.212707 submit/tizen/20200916.081844
jeon [Wed, 16 Sep 2020 03:31:08 +0000 (12:31 +0900)]
e_devicemgr: remove unused values

Change-Id: Ibffc8f905ebcfc2ae510f555ab3182edb74160cf

3 years agoe_input: add a option e_wheel_click_angle to increase wheel values 46/244146/2
jeon [Wed, 16 Sep 2020 03:19:13 +0000 (12:19 +0900)]
e_input: add a option e_wheel_click_angle to increase wheel values

Change-Id: Ie23c0cb766b29c475a74140783cb22199c34d704

3 years agoe_service_quickpanel: don't doing force render if ec is already visible 13/244013/1
Junseok, Kim [Mon, 14 Sep 2020 05:31:14 +0000 (14:31 +0900)]
e_service_quickpanel: don't doing force render if ec is already visible

during the quickpanel is moving, the buffer_change callback called many time.
for reduce burden of force render, skip force render if ec is already visible.

Change-Id: Ic48746ab8408095fb9624ac72bc9c15515813650
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoenable gcov 90/243890/1 accepted/tizen/unified/20200914.131420 submit/tizen/20200911.075444
Junkyeong Kim [Fri, 11 Sep 2020 03:11:53 +0000 (12:11 +0900)]
enable gcov

execute __gcov_flush() function by e_info_client.
have to change USE_GCOV define to '1' in spec file to make gcov gcno files.

Change-Id: Idef9c6f76150c56eed98c999b361cd554ac75919
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
3 years agoe_comp_object: check null before use 14/243814/2
Junkyeong Kim [Thu, 10 Sep 2020 08:01:02 +0000 (17:01 +0900)]
e_comp_object: check null before use

Change-Id: I77409194d759103a142e121fb4a86cc7c318dd30
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
3 years agoe_input: use discrete value for wheel axis 25/243725/1 accepted/tizen/unified/20200911.143443 submit/tizen/20200910.014219
jeon [Wed, 9 Sep 2020 10:28:14 +0000 (19:28 +0900)]
e_input: use discrete value for wheel axis

Change-Id: I71b138292cf6c515b82ee932ce8057fe66a5715d

3 years agoe_policy_visibility: 24bit quickpanel window is included as activity when activity_check 25/243625/2
Junseok, Kim [Tue, 8 Sep 2020 13:00:30 +0000 (22:00 +0900)]
e_policy_visibility: 24bit quickpanel window is included as activity when activity_check

Suppose there're normal window, 24bit quickpanel and higher layers window.
if the higher window hide, the normal window doing deiconify approve even if it's obscured by 24bit quickpanel window.
It's caused by quickpanel window rule out by special_check
for fix this issue, 24bit quickpanel is not special window for include visibility check of deiconify approve.

Change-Id: I7df994dc7caf165f1d192a398862d9a8e2e6ac32
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_desk: fixed desk zoom effect 43/243643/2
Doyoun Kang [Wed, 9 Sep 2020 01:52:53 +0000 (10:52 +0900)]
e_desk: fixed desk zoom effect

Change-Id: I2deb7b1913c3656e732b6a456f6340416c937404

3 years agoe_hwc_window: reference hwc_window of cursor when display info is set 60/243560/1 accepted/tizen/unified/20200908.073754 submit/tizen/20200908.071647
Changyeon Lee [Tue, 8 Sep 2020 04:41:26 +0000 (13:41 +0900)]
e_hwc_window: reference hwc_window of cursor when display info is set

Change-Id: Ia86caf5aa1a21936058b811314750a74139eeb45

3 years agoe_hwc_window: clear display and commit buffer ref before hwc_window is freed 55/243555/2
Changyeon Lee [Tue, 8 Sep 2020 04:43:00 +0000 (13:43 +0900)]
e_hwc_window: clear display and commit buffer ref before hwc_window is freed

Change-Id: Ib43bee72604e9609e1ae7fc706afdda501240725

3 years agoe_policy_wl: remove unused tzsh_tvsrv 77/237977/2 submit/tizen/20200908.015033
Junseok, Kim [Fri, 17 Apr 2020 09:09:48 +0000 (18:09 +0900)]
e_policy_wl: remove unused tzsh_tvsrv

Change-Id: I9d441d402f773eb1b48a62e9a9c5351226a21d9c
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_policy_wl: remove unused tzsh_service_call 76/237976/4
Junseok, Kim [Fri, 17 Apr 2020 05:35:46 +0000 (14:35 +0900)]
e_policy_wl: remove unused tzsh_service_call

Change-Id: Ia40e292583c37fa643896df6f0ec5b9ffdaf79ef
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_comp_object: convert damage according to evas_map coordinate 34/243434/3 accepted/tizen/unified/20200908.021114 submit/tizen/20200907.115522 submit/tizen/20200907.215450
Changyeon Lee [Mon, 7 Sep 2020 09:58:18 +0000 (18:58 +0900)]
e_comp_object: convert damage according to evas_map coordinate

for example size of evas_object is 100x100 and evas_object is mapped by 200x200 size,
enlgithenment add damage coordinate(50x50+0+0) base on 100x100 size.
it seems that current efl add damage (50x50+0+0) to gl with eglSetDamageRegionKHR.
but damage of gl coordinate should be (100x100+0+0).
so this patch convert damage according to evas_map coordinate.

Change-Id: I53d3f4323125a95b627e120e29cb1a0361fdb372

3 years agoe_policy_visibility: Do not delete a job during executing jobs in a list. 20/243020/2 accepted/tizen/unified/20200903.151707 submit/tizen/20200903.051822
Seunghun Lee [Wed, 2 Sep 2020 21:07:20 +0000 (06:07 +0900)]
e_policy_visibility: Do not delete a job during executing jobs in a list.

Deleting a E_Vis_Client could be happened while job has been executing by
iterating list of job. In that situation, deleting a job and evaluating
job list had list of job corrupted.
So this patch marks a job deleted and lets it be deleted during job execution.

Change-Id: I95059b9f61073a95212de2ca5c31b9127b8a0dcd

3 years agoRevert "e_devicemgr_inputgen: remove memory leak" 96/242996/1 submit/tizen/20200902.112453
jeon [Wed, 2 Sep 2020 09:56:26 +0000 (18:56 +0900)]
Revert "e_devicemgr_inputgen: remove memory leak"

This reverts commit 408fb1ee6e02c8ad67c6144f87a94dc32dd1d8f6.

Change-Id: I14c0bcc35e66bbb561b6ab2943b94ac098818d96

3 years agoe_info_server: add null checking before use 31/242931/1 accepted/tizen/unified/20200902.145522 submit/tizen/20200902.060217
Junkyeong Kim [Wed, 2 Sep 2020 04:50:41 +0000 (13:50 +0900)]
e_info_server: add null checking before use

Change-Id: I483b858f48a2ce1062263775a07cb1cfcfe3cb88
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
3 years agoe_client: use previous get type value 30/242930/1
Junkyeong Kim [Wed, 2 Sep 2020 04:21:15 +0000 (13:21 +0900)]
e_client: use previous get type value

Change-Id: I2d76e37c7b0003c3eaff29f11e4601f5621f4cde
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
3 years agoe_policy_stack: fix svace issue 00/242800/1 accepted/tizen/unified/20200901.160716 submit/tizen/20200901.021435
Junseok, Kim [Tue, 1 Sep 2020 02:10:21 +0000 (11:10 +0900)]
e_policy_stack: fix svace issue

Change-Id: Ia258532790081743084ca31ee2203bc167aef745
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoviewport: do cache changes according to sub-surface sync mode. 90/242190/7
Seunghun Lee [Tue, 18 Aug 2020 14:10:38 +0000 (23:10 +0900)]
viewport: do cache changes according to sub-surface sync mode.

Now that sub-surface issues SUBSURFACE_COMMIT_TO_CACHE event,
viewport can cache changes requested by client.
The cached state will be applied to current state on the next commit.

Change-Id: Id521b1cd61af4c5c5ba94a13db4e8f04828d1458

3 years agosubsurface: Add a hook point for SUBSURFACE_COMMIT_TO_CACHE. 89/242189/4
Seunghun Lee [Thu, 13 Aug 2020 20:24:59 +0000 (05:24 +0900)]
subsurface: Add a hook point for SUBSURFACE_COMMIT_TO_CACHE.

This patch introduces a hook point for SUBSURFACE_COMMIT_TO_CACHE.
A function given to e_comp_wl_hook_add() with this hook point will be
called when changes of subsurface is committed to cache.
It will give a chance for others to cache its changes by itself.

An implementation of tizen_viewport as an extension of wayland protocol
for tizen will use this hook point for caching its changes in a
future patch.

NOTE:
Modules which listen to this hook event should apply its cached state to
current state first when wl_surface.commit occurs. Yet when there is no
cached state at that moment, it should apply pending state.

COMMIT TO CACHE
pending -> cache

wl_surface.commit
cache ? cache -> current : pending -> current

Change-Id: I35f908881d8ff06a40d90b4d78b381d31b259ef1

3 years agosubsurface: Do not create below bg rectangle for argb window. 02/242702/1
Seunghun Lee [Mon, 31 Aug 2020 11:37:17 +0000 (20:37 +0900)]
subsurface: Do not create below bg rectangle for argb window.

This fixes a bug creating and destroying below bg rectangle repeatedly.

Change-Id: Ibd310e88daaeb230872812a63b3d762ef4326a36

3 years agoe_info: add select window option in dump_buffers 06/242506/3 accepted/tizen/unified/20200828.121346 submit/tizen/20200828.082550
Changyeon Lee [Thu, 27 Aug 2020 08:22:28 +0000 (17:22 +0900)]
e_info: add select window option in dump_buffers

-w [Win_Id] : dump sepecific window
-w server   : dump only server
-w client   : dump only client

Change-Id: I8e54ebe09b74dff8e45e61a623892fc8913d9c25

3 years agoe_policy_wl: add privilege check of all tzsh services 92/242592/3
Junseok, Kim [Fri, 28 Aug 2020 06:26:36 +0000 (15:26 +0900)]
e_policy_wl: add privilege check of all tzsh services

from now on, all of tzsh_service needs privilege.
(default: internal/default/platform)

Change-Id: I03bc29034c900b5148f37d4b8c940854054da7d1
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_keyrouter: retrun false in an intercept hook if only an one hook returns false 59/242459/2
jeon [Thu, 27 Aug 2020 05:48:56 +0000 (14:48 +0900)]
e_keyrouter: retrun false in an intercept hook if only an one hook returns false

Change-Id: Idc9843e852c58eb4523e20924cc70c3d6cce298d

3 years agoe_hwc_window: do not set device state if desk geometry of ec is changed 67/242467/1
Changyeon Lee [Tue, 25 Aug 2020 11:30:44 +0000 (20:30 +0900)]
e_hwc_window: do not set device state if desk geometry of ec is changed

Change-Id: I19f84c6f69a05d3fbcabcd8b569c5a85e9cc98a4

3 years agoe_policy_stack: adjust transient_for always on top hint 94/241894/5 accepted/tizen/unified/20200827.105807 submit/tizen/20200825.123908
Junseok, Kim [Wed, 19 Aug 2020 13:27:04 +0000 (22:27 +0900)]
e_policy_stack: adjust transient_for always on top hint

if use wm.policy.win.transient_for.always_on_top aux hint,
the ec's stack will be fixed topmost of transients.

Change-Id: If532356abcd2efab3df3eeaafa207e1af733c28e
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_policy_wl: support aux_hint for transient_for always on top 93/241893/3
Junseok, Kim [Wed, 19 Aug 2020 13:26:37 +0000 (22:26 +0900)]
e_policy_wl: support aux_hint for transient_for always on top

Change-Id: I341f5b7937e945d2192e8e1bf5ea24ef305a798e
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_module: initialize buffer before use it 29/242229/2 accepted/tizen/unified/20200826.133042 submit/tizen/20200825.082113
Junseok, Kim [Tue, 25 Aug 2020 05:29:27 +0000 (14:29 +0900)]
e_module: initialize buffer before use it

Change-Id: I3358a9ef31e9b33a3cf9606c9cb022ef929daf52
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_hwc_windows: support presentation_time in case of use pp 18/242218/2
Changyeon Lee [Fri, 21 Aug 2020 10:34:54 +0000 (19:34 +0900)]
e_hwc_windows: support presentation_time in case of use pp

take presentation_time of hwc_window or target_buffer in
commit pp_buffer

Change-Id: Ib9e0f29d3a6364a9e7fcb7fb81af61cdd387b1b1

3 years agoe_info: add -hwc_wins commit 05/241305/6
Changyeon Lee [Wed, 19 Aug 2020 04:52:12 +0000 (13:52 +0900)]
e_info: add -hwc_wins commit

print commit infomation of hwc windows

Change-Id: I9382767b378335cfe0f2e20129a9d73a7218f52a

3 years agoe_hwc_windows: support multiple hwc_commit_data 04/241304/6
Changyeon Lee [Wed, 19 Aug 2020 04:49:20 +0000 (13:49 +0900)]
e_hwc_windows: support multiple hwc_commit_data

e_hwc and e_hwc_window has list of commit_data

Change-Id: Icee275fcb791a9d46e993432841550f823a3d873

3 years agoe_hwc_windows: refactoring external output mirror/presentation mode 82/241182/4
Changyeon Lee [Thu, 13 Aug 2020 11:58:22 +0000 (20:58 +0900)]
e_hwc_windows: refactoring external output mirror/presentation mode

1. use pp_queue of target_hwc_window
2. unified tdm_pp of zoom and external output mode
3. set hwc_window to pp_hwc_window if need to use tdm_pp

Change-Id: I3077206a235cceca294abc8f7207f0e3a844fff0

3 years agoe_hwc_windows: refactoring e_hwc_windows_zoom_set/unset 81/241181/3
Changyeon Lee [Thu, 13 Aug 2020 11:34:41 +0000 (20:34 +0900)]
e_hwc_windows: refactoring e_hwc_windows_zoom_set/unset

1. use E_Hwc_Window_Queue and pp_queue of target_window
2. set pp_hwc_window or target_window buffer to pp_buffer of hwc
   after  hwc_windows are updated
3. set pp_buffer of hwc to tdm_pp_commit and pp destination buffer is
   enqueued to pp_queue when pp_commit_handler is called
4. target_window set buffer of pp_queue to tdm client_target_buffer

Change-Id: Ic85bfd3cf58c6371f9297c9fe1385edd3dcd2380

3 years agoe_hwc_windows: remove checking tdm_set 80/241180/2
Changyeon Lee [Thu, 13 Aug 2020 10:47:24 +0000 (19:47 +0900)]
e_hwc_windows: remove checking tdm_set

Change-Id: I89a9db93a6babfe0a9224dcf077c32b91b13e361

3 years agoe_hwc_windows: add pp_queue to E_Hwc_Window_Target 79/241179/2
Changyeon Lee [Thu, 13 Aug 2020 10:26:35 +0000 (19:26 +0900)]
e_hwc_windows: add pp_queue to E_Hwc_Window_Target

if queue of pp is set to E_Hwc_Widnow_Target,
E_Hwc_Window_Target set buffer of pp_queue to tdm

Change-Id: I4c46bd1ee9e5bebb29ba5157a5223cdcfd8b9556

3 years agoe_hwc_window_queue: add e_hwc_window_queue_get api 78/241178/2
Changyeon Lee [Thu, 13 Aug 2020 10:13:18 +0000 (19:13 +0900)]
e_hwc_window_queue: add e_hwc_window_queue_get api

Change-Id: I8743918a5550692db987e0be603fc913b1d1a7a9

3 years agoe_hwc_window: change _e_hwc_window_buffer_set to EINTERN api 77/241177/2
Changyeon Lee [Thu, 13 Aug 2020 10:07:48 +0000 (19:07 +0900)]
e_hwc_window: change _e_hwc_window_buffer_set to EINTERN api

Change-Id: If8a1f7e828c46563da5f10a6e8308b1f09e50738

3 years agoe_comp_wl_remote: add override when saving image in action change hook 23/242123/2
Changyeon Lee [Mon, 24 Aug 2020 08:34:02 +0000 (17:34 +0900)]
e_comp_wl_remote: add override when saving image in action change hook

client can be visible state when action state is changed to DEACTIVATE,
so client can have front buffer by hw reserved memory.

Change-Id: I6221075659a2ab29fe19d8ba071d0602001fa3ca

3 years agoe_info_client: use ELDBUS_TIMEOUT_INFINITE in dump_buffers 14/242114/2
Changyeon Lee [Mon, 24 Aug 2020 06:48:09 +0000 (15:48 +0900)]
e_info_client: use ELDBUS_TIMEOUT_INFINITE in dump_buffers

Change-Id: I94591fdfc89b685ecfa8aeda4b11e307cbd60e0c

3 years agoe_comp_wl: remove a frame resource from cached frame list. 03/242003/3
Seunghun Lee [Fri, 21 Aug 2020 18:29:13 +0000 (03:29 +0900)]
e_comp_wl: remove a frame resource from cached frame list.

this fixes a crash caused by trying to an invalid frame resource which
is destroyed, but dangling from cached frame list.

Change-Id: I3cf097c4b493fec3090a06dfa7f766b934ac2873

3 years agosubsurface: use eina_safety to be loud on invalid parameters. 96/241396/4
Seunghun Lee [Wed, 19 Aug 2020 08:20:25 +0000 (17:20 +0900)]
subsurface: use eina_safety to be loud on invalid parameters.

it should use eina_safety_checks when it comes to the variable that must
not be null. this will make noise and let us know about the misuse.

Change-Id: Ia3eb72eb249e4757e1ef651f0bb5c9acf6b1727f

3 years agosubsurface: add comments about the reason invoking transform_core_update() 29/241229/3
Seunghun Lee [Thu, 23 Jul 2020 09:17:37 +0000 (18:17 +0900)]
subsurface: add comments about the reason invoking transform_core_update()

Change-Id: I6dd0596bd47e4b7892374532efadff1a2615f975

3 years agosubsurface: cleanup for the below_obj of topmost. 28/241228/3
Seunghun Lee [Thu, 23 Jul 2020 06:41:24 +0000 (15:41 +0900)]
subsurface: cleanup for the below_obj of topmost.

do not call recursivley for the clarification. since this function is
obviously for topmost surface, there is no need to use recursive call.

no functional changes

Change-Id: Ibc34b7c324d344b5433220deda7cdae0b0b9da8b

3 years agosubsurface: add and use _e_comp_wl_subsurface_data_get() 27/241227/3
Seunghun Lee [Thu, 23 Jul 2020 02:37:39 +0000 (11:37 +0900)]
subsurface: add and use _e_comp_wl_subsurface_data_get()

Change-Id: Iec6bfcdea79b173e78a266703a421dfc5948c143

3 years agosubsurface: check data validation before calling function 26/241226/3
Seunghun Lee [Sun, 17 May 2020 23:33:50 +0000 (08:33 +0900)]
subsurface: check data validation before calling function

Change-Id: I1b3eb6e73a1ef3f72e62001c85cbb3f2c259c70c

3 years agosubsurface: set_desync should flush 25/241225/3
Seunghun Lee [Fri, 15 May 2020 07:49:40 +0000 (16:49 +0900)]
subsurface: set_desync should flush

wl_subsurface.set_desync should apply the cached wl_surface state.
Otherwise, the sub-surface may be stuck: a commit on the parent surface.
if desynchronized, will not commit the sub-surface because it is
desynchronized, too. A commit on the sub-surface may not happen, if it
is waiting for the frame callback from the previous commit.

Change-Id: I80abff41736ec76ed7449d14d4246eb9c6fc1412

3 years agosubsurface: create 'wl_resource' for wl_subsurface at one place. 24/241224/3
Seunghun Lee [Wed, 13 May 2020 09:09:59 +0000 (18:09 +0900)]
subsurface: create 'wl_resource' for wl_subsurface at one place.

Change-Id: I1aeab454ee00e09f14abaf4232b2598fe1099245

3 years agosubsurface: add a dummy interface for handling a subsurface with invalid parent. 23/241223/2
Seunghun Lee [Wed, 13 May 2020 08:52:41 +0000 (17:52 +0900)]
subsurface: add a dummy interface for handling a subsurface with invalid parent.

now that it uses dummy implementation for wl_subsurface_interface for
invalid parent, there is no need to check if user data of wl_resource
is valid in case of normal parent.

Change-Id: Ib7551574147b8d4358c1fdabf2587e1f6d94a4eb

3 years agosubsurface: add a function checking circular reference for subsurface. 22/241222/2
Seunghun Lee [Wed, 13 May 2020 08:32:34 +0000 (17:32 +0900)]
subsurface: add a function checking circular reference for subsurface.

Change-Id: I25bf7c5ed840f6aa8d121462658b061590e18613

3 years agosubsurface: check parameters unlikely to be false with EINA_SAFETY. 21/241221/2
Seunghun Lee [Wed, 13 May 2020 08:18:01 +0000 (17:18 +0900)]
subsurface: check parameters unlikely to be false with EINA_SAFETY.

Change-Id: I69ae13e2018c6c5155f5ccf416870aec6f5705d7

3 years agosubsurface: remove useless 'if' statement. 20/241220/2
Seunghun Lee [Wed, 13 May 2020 08:14:18 +0000 (17:14 +0900)]
subsurface: remove useless 'if' statement.

it cannot reach here if 'epc' is null.

Change-Id: I3d4f2b18ffd578894077007cf1f6b3ec6ae0f1d1

3 years agoe_client: check iconify by client when client focusable check 79/241379/1 accepted/tizen/unified/20200824.134503 submit/tizen/20200821.110626
Junseok, Kim [Wed, 19 Aug 2020 13:03:36 +0000 (22:03 +0900)]
e_client: check iconify by client when client focusable check

If there're partial size window and using topmost focusable policy,
the topmost window uniconify by focus even if it's iconify by client.
for fix this problem, check iconify by client when client focusable check.

Change-Id: Ibb9b8ee770b442fc20741fc6c923fe2dc5eac290
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agofix wayland frame callback times 26/240726/1
Seunghun Lee [Tue, 11 Aug 2020 12:09:02 +0000 (21:09 +0900)]
fix wayland frame callback times

ecore_time_unix_get() * 1000 is too big to fit in a uint32, so use
ecore_loop_time_get() * 1000.

Change-Id: I1db473a2bf292cce32850da6b1f51178a4ee5bd1

3 years agoe_config: add fake_output_resolution config 12/240112/10 accepted/tizen/unified/20200807.141023 submit/tizen/20200806.063603 submit/tizen/20200806.232945
Junkyeong Kim [Mon, 3 Aug 2020 11:41:07 +0000 (20:41 +0900)]
e_config: add fake_output_resolution config

for test environment, can be set fake resolution by fake_output_resolution config.

Change-Id: I96877f517f02f1e27239e41904875b40fd5a9303
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
3 years agoe_process: modify E_CLIENT_HOOK_DEL callback function 07/240407/1
Doyoun Kang [Thu, 6 Aug 2020 05:52:27 +0000 (14:52 +0900)]
e_process: modify E_CLIENT_HOOK_DEL callback function

We add code checking ec->reg_ev.add flag.
If this flag is not set, this means e didn't send E_EVENT_CLIENT_REMOVE event.
In this case, we have to remove ec from ec_list in e_process info.

Change-Id: I7acf1e14c90cc76c1fc7dd835e93e2ed6a9e4466

3 years agoadd log for sending client_add/remove event 05/240405/1
Doyoun Kang [Thu, 6 Aug 2020 05:51:41 +0000 (14:51 +0900)]
add log for sending client_add/remove event

Change-Id: Ib863886a1c7abbc050cacde03fe79fe4bba89771

3 years agoe_comp: add config hwc_send_redraw_request 24/240324/1 accepted/tizen/unified/20200806.121101 submit/tizen/20200805.095055 submit/tizen/20200806.053906
Changyeon Lee [Wed, 5 Aug 2020 09:46:51 +0000 (18:46 +0900)]
e_comp: add config hwc_send_redraw_request

Change-Id: Ibf1ea0bb11c5ea41d8c302c9e3b1d9f3bb3df62f
0: none, 1: send redraw request to client when client need to redraw for hwc

3 years agoe_hwc_windows: add timer of waiting commit handler 84/240184/3
Changyeon Lee [Wed, 29 Jul 2020 08:52:00 +0000 (17:52 +0900)]
e_hwc_windows: add timer of waiting commit handler

add config of e_comp commit_handler_timer.use and
commit_handler_timer.interval

Change-Id: Ib90a43468dc9202ab8ca5b39219819ed47b62d7f

3 years agoe_hwc_windows: attach null buffer after e_comp_object_redirected_set 83/240183/3
Changyeon Lee [Thu, 30 Jul 2020 04:43:46 +0000 (13:43 +0900)]
e_hwc_windows: attach null buffer after e_comp_object_redirected_set

e_comp_object_redireceted_set should be called after buffer is attached to surface,
because evas_map of screen rotation is applied when e_comp_object_redirected_set.

Change-Id: I8073079f0f98c660a02c98361888b973466608cf

3 years agoe_comp_object: disable map when redirect of obj is set to false 82/240182/3
Changyeon Lee [Tue, 28 Jul 2020 11:52:09 +0000 (20:52 +0900)]
e_comp_object: disable map when redirect of obj is set to false

if redirected of obj is set to false, it isn't composited by evas
so map isn't needed.

Change-Id: Id8c18ec04c5d137d438e329962d55826eb4f0fcd

3 years agoe_policy_visibility: check above window is visible when below_uniconify 87/240287/1 accepted/tizen/unified/20200806.062550 submit/tizen/20200806.024821
Junseok, Kim [Wed, 5 Aug 2020 05:29:52 +0000 (14:29 +0900)]
e_policy_visibility: check above window is visible when below_uniconify

Change-Id: I387fe9c1fc8cf179963642340e5752aa87b14837
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_xdg_shell_v6: set ec changed flag when end of toplevel_parent_set 31/240231/2
Junseok, Kim [Tue, 4 Aug 2020 13:16:11 +0000 (22:16 +0900)]
e_xdg_shell_v6: set ec changed flag when end of toplevel_parent_set

Change-Id: Id353d937fcf5a5519c4947e841c933a5acc85e52
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_comp_wl_shell: add log for parent set 53/240153/2
Junseok, Kim [Tue, 4 Aug 2020 04:44:18 +0000 (13:44 +0900)]
e_comp_wl_shell: add log for parent set

Change-Id: I64955936ccc4754371ec05e58ef81c9c88c8f9f4
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_process: add callback for E_CLIENT_HOOK_DEL 49/239849/1 accepted/tizen/unified/20200730.130817 submit/tizen/20200730.084930
Doyoun Kang [Thu, 30 Jul 2020 07:09:24 +0000 (16:09 +0900)]
e_process: add callback for E_CLIENT_HOOK_DEL

There was a potential issue for removing e_process info.
When e doesn't send E_EVENT_CLIENT_REMOVE event, then e_process didn't remove ec from the ec_list.
In this case, e could work invalid.

Change-Id: I04974cb4660b0fc4b1beff82aea104da7135907c

3 years agoe_process: add log for adding/removing e_process info 47/239847/1
Doyoun Kang [Thu, 30 Jul 2020 07:06:02 +0000 (16:06 +0900)]
e_process: add log for adding/removing e_process info

Change-Id: Ib9ea2884ef4e34b3da89ebbbac0b5e59857e3181

3 years agoe_client/e_policy_wl: add log for debugging 95/239695/1 accepted/tizen/unified/20200729.165553 submit/tizen/20200729.055340
Doyoun Kang [Wed, 29 Jul 2020 04:05:03 +0000 (13:05 +0900)]
e_client/e_policy_wl: add log for debugging

Change-Id: Ib3ef8bea1efa8431c2f54886106d44832ce6b13c

3 years agoe_info_server: resize layer_name for prevent string overflow 78/239678/1
Junseok, Kim [Wed, 29 Jul 2020 01:42:12 +0000 (10:42 +0900)]
e_info_server: resize layer_name for prevent string overflow

The maximum size of layer name is 35 (E_LAYER_CLIENT_NOTIFICATION_NORMAL).
But the layer_name size was 32, so it could cause string overflow.
So, resize and initialize layer_name for prevent string overflow.

Change-Id: I8b5da1789d33d8861d70af3746414c387b31ecec
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoRevert "e_info_server: change from eina_stringshare to char array as client title" 76/239676/1
Junseok, Kim [Wed, 29 Jul 2020 01:40:56 +0000 (10:40 +0900)]
Revert "e_info_server: change from eina_stringshare to char array as client title"

This reverts commit 120a9549ea8a375121d19b8b5b041309c8637af9.

Change-Id: I08143062635a5fcb02397b7b15b2ae35a983c30b
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_hwc_windows: check to change of cursor buffer and info in commit_data_acquire 44/239544/1
Changyeon Lee [Tue, 21 Jul 2020 05:28:22 +0000 (14:28 +0900)]
e_hwc_windows: check to change of cursor buffer and info in commit_data_acquire

Change-Id: I62e017be2ea882b8390f8591195181cf9808de54

3 years agoe_hwc_windows: call sync of e_explicit_sync_surface in render pre callback 26/239526/3
Changyeon Lee [Mon, 27 Jul 2020 10:14:31 +0000 (19:14 +0900)]
e_hwc_windows: call sync of e_explicit_sync_surface in render pre callback

eglWaitSyncKHR of e_explicit_sync_surface should be called before gl call

Change-Id: Ia6a2d6b71900fb8d4bb7cd055bbfd482893beca2

3 years agoe_info_server: change from eina_stringshare to char array as client title 16/239216/2 accepted/tizen/unified/20200727.132016 submit/tizen/20200727.024738
Junseok, Kim [Wed, 22 Jul 2020 12:58:30 +0000 (21:58 +0900)]
e_info_server: change from eina_stringshare to char array as client title

use topvwins when there're long name window, can cause E20 crash.
It seems that issue caused by sending eina_stringshare via eldbus, so replace eina_stringshare to char array as hotfix.

+ minor fix: the maximum layer name is 34 (noti_normal), so added more buffer for layer_name.

Change-Id: I07dcf5f56937f4c3178ba25a2ffd55003ebfd1ec
Signed-off-by: Junseok, Kim <juns.kim@samsung.com>
3 years agoe_keyrouter: Support a API to send event_surface 88/239188/1
jeon [Wed, 22 Jul 2020 10:30:16 +0000 (19:30 +0900)]
e_keyrouter: Support a API to send event_surface

Change-Id: I16be5141433d3d082fda7182d0f57fd39eb42642

3 years agoe_devicemgr_inputgen: remove memory leak 84/238784/4 accepted/tizen/unified/20200722.144544 submit/tizen/20200722.062048
SooChan Lim [Fri, 17 Jul 2020 08:17:05 +0000 (17:17 +0900)]
e_devicemgr_inputgen: remove memory leak

Change-Id: I1d52223e0bf8871763fc8472e69dd1aa3aa77c9a

3 years agoRevert "Revert "subsurface: declare local variable at the beginning of a function."" 27/239127/1
Seunghun Lee [Wed, 22 Jul 2020 04:00:32 +0000 (13:00 +0900)]
Revert "Revert "subsurface: declare local variable at the beginning of a function.""

This reverts commit dc3353dd2213afc94de2873cba08f186bc9fd1ae.

Change-Id: Ic40b32c2a79af35888e57ae1f3611917d7eccf92

3 years agoRevert "Revert "subsurface: check validation of ec at the entry of EINTERN function."" 26/239126/1
Seunghun Lee [Wed, 22 Jul 2020 04:00:31 +0000 (13:00 +0900)]
Revert "Revert "subsurface: check validation of ec at the entry of EINTERN function.""

This reverts commit 62019ea6f6155e924529ec345ce6b5507c2e388e.

Change-Id: I20e73330d05f720a4b08f462004990a371da63f7

3 years agoRevert "Revert "subsurface: cleanup and add some logs for below_obj."" 25/239125/1
Seunghun Lee [Wed, 22 Jul 2020 04:00:29 +0000 (13:00 +0900)]
Revert "Revert "subsurface: cleanup and add some logs for below_obj.""

This reverts commit e6806eb59fc960996109f4f30ad38652cad22b3f.

Change-Id: I8279f67d80025593df5b25126363303797deacaf

3 years agoRevert "Revert "subsurface: remove below_obj when it becomes useless."" 24/239124/1
Seunghun Lee [Wed, 22 Jul 2020 04:00:21 +0000 (13:00 +0900)]
Revert "Revert "subsurface: remove below_obj when it becomes useless.""

This reverts commit 01334e96691eebed6c95192e8cd7ff7174f7e907.

Change-Id: I1077765f4994dae026e1b7c5c52cba9571703dfe

3 years agoRevert "subsurface: remove below_obj when it becomes useless." 48/239048/1 accepted/tizen/unified/20200721.142218 submit/tizen/20200721.101335
Seunghun Lee [Tue, 21 Jul 2020 09:44:37 +0000 (18:44 +0900)]
Revert "subsurface: remove below_obj when it becomes useless."

This reverts commit 8e58cf4ebf8aac359878df727049d07d9b365fdb.

Change-Id: Ia23aa0d1364ee73aacce67ed2bbe88e282c96431

3 years agoRevert "subsurface: cleanup and add some logs for below_obj." 47/239047/1
Seunghun Lee [Tue, 21 Jul 2020 09:44:36 +0000 (18:44 +0900)]
Revert "subsurface: cleanup and add some logs for below_obj."

This reverts commit 19de21428fa12b519199566c3edbe3611603480c.

Change-Id: Ia202cbf29832bc8aeb87a628be18508b79ecaa04

3 years agoRevert "subsurface: check validation of ec at the entry of EINTERN function." 46/239046/1
Seunghun Lee [Tue, 21 Jul 2020 09:44:33 +0000 (18:44 +0900)]
Revert "subsurface: check validation of ec at the entry of EINTERN function."

This reverts commit bf2c1062e1171431778f9d0823ad36f096b41052.

Change-Id: I9f59a18408fbc0d648a17813ab37eaf224db4d5d

3 years agoRevert "subsurface: declare local variable at the beginning of a function." 45/239045/1
Seunghun Lee [Tue, 21 Jul 2020 09:44:30 +0000 (18:44 +0900)]
Revert "subsurface: declare local variable at the beginning of a function."

This reverts commit 4ebe643bdbd69ddea5c94439c3a0085836e91598.

Change-Id: Ia2d816b5e5d5c62f96b55723d26fd5a88904ffb6

3 years agoe_policy_visibility: add job for activating while handling activate request 10/238910/2 accepted/tizen/unified/20200720.125547 submit/tizen/20200720.080509
Doyoun Kang [Mon, 20 Jul 2020 07:23:01 +0000 (16:23 +0900)]
e_policy_visibility: add job for activating while handling activate request

If there is a child which have to run uniconify_render_pending when a parent window request
to activate, e add the parent window to job to sync showing windows both parent and children.

Change-Id: I68c183cdb392a8488e1771f3d763ba5ea677ccd5

4 years agoe_actions: check if the list pointer is null. 83/238783/2
SooChan Lim [Fri, 17 Jul 2020 08:08:09 +0000 (17:08 +0900)]
e_actions: check if the list pointer is null.

Change-Id: Ia80682c7e1a23cf3ea50466cedaa5f1942243852

4 years agoe_comp_object: check if cw->ec is null 82/238782/2
SooChan Lim [Fri, 17 Jul 2020 08:02:55 +0000 (17:02 +0900)]
e_comp_object: check if cw->ec is null

Change-Id: I8c20593eb7eeb17be58d6888a5c087c37e73256c