platform/upstream/enlightenment.git
9 years agofixes sticky cursors 85/47185/2 accepted/tizen/mobile/20150903.000046 accepted/tizen/tv/20150903.000241 accepted/tizen/wearable/20150903.000518 submit/tizen/20150902.122230
Duna Oh [Tue, 1 Sep 2015 01:44:04 +0000 (10:44 +0900)]
fixes sticky cursors

- Add inside_check condition when gets MOUSE_OUT event
Even though ec->cur_mouse_action is not NULL, check if mouse is out of client and reset the cursor.
- Remove check for ec->mouse.in when get cursor_set.
ec->mouse.in could be FALSE when comp_grabbed is TRUE, then failed to set the client's cursor.
- Show canvas cursor when reset the cursor

Change-Id: I59430fd8c4d1b9fcd19dc6f92f00abb1156697b3
Signed-off-by: Duna Oh <duna.oh@samsung.com>
9 years agoe_comp_wl: pull transformable window inside of canvas 24/47224/2
MinJeong Kim [Tue, 1 Sep 2015 06:27:13 +0000 (15:27 +0900)]
e_comp_wl: pull transformable window inside of canvas

pull transformable window inside of canvas when user tried to locate window
ouside of screen.

Change-Id: I7b4f1409d5539a8b4636bb4f7fae7dc5a0a4f88b
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoe_comp_object: use correct macro 39/47039/1 accepted/tizen/mobile/20150901.001758 accepted/tizen/tv/20150901.001813 accepted/tizen/wearable/20150901.001826 submit/tizen/20150831.052721
MinJeong Kim [Fri, 28 Aug 2015 09:59:56 +0000 (18:59 +0900)]
e_comp_object: use correct macro

Change-Id: I7e9aebf323ab1eb91dba2392747dc0bc5889ed48
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoe_client: unset transform if it has original factors 38/47038/1
MinJeong Kim [Fri, 28 Aug 2015 09:58:30 +0000 (18:58 +0900)]
e_client: unset transform if it has original factors

Change-Id: Ieba27d12a9a25161949ff6bd579c1890d5de030e

9 years agoe_comp_wl: transform client object using mouse wheel 37/47037/1
MinJeong Kim [Fri, 28 Aug 2015 09:33:04 +0000 (18:33 +0900)]
e_comp_wl: transform client object using mouse wheel

Change-Id: I085215501dafc5ec2df0341c48bb01ab73fb641d
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoe_comp_wl_input: Do not move the pointer when get a configure 78/46778/1 accepted/tizen/mobile/20150829.025910 accepted/tizen/tv/20150829.030450 accepted/tizen/wearable/20150829.031235 submit/tizen/20150828.044757
Duna Oh [Wed, 26 Aug 2015 04:57:26 +0000 (13:57 +0900)]
e_comp_wl_input: Do not move the pointer when get a configure

When the pointer is mapped, The position of pointer is updated as current mouse position.
But after mapping, the pointer get a configure with previous x,y position (0,0).

Change-Id: I145e978d7f423773161aa0e7361e33b5836f9af8
Signed-off-by: Duna Oh <duna.oh@samsung.com>
9 years agoFixed to render image with previous size 35/46735/1 accepted/tizen/mobile/20150826.020010 accepted/tizen/tv/20150826.015606 accepted/tizen/wearable/20150826.020217 submit/tizen/20150825.115612
MinJeong Kim [Tue, 25 Aug 2015 11:10:50 +0000 (20:10 +0900)]
Fixed to render image with previous size

Set size of image object to new buffer size when new buffer resource be
set. This patch fixes a problem to draw image object with size of previous
buffer that not rendered.

The problem mentioned above is derived from current buffer management process.
because the process doesn't ensure to render all committed buffer, it means
there are buffers never rendered(even if those buffers changes size of image
object already it's possible to be skip rendering). In the future, new process
is considerable that manage new attached buffer resources with pending list
if previous buffer is not rendered yet to resolve the skip problem.

Change-Id: Ia4bc7296c9770a1a2a28f7872f1c7ef1225a712b
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoe_comp_object: fix infinite loop during resizing a smart object. 18/46718/2
Boram Park [Tue, 25 Aug 2015 08:29:12 +0000 (17:29 +0900)]
e_comp_object: fix infinite loop during resizing a smart object.

   If wl_surface han no wl_buffer, reszing a comp smart object occurs
   infinite loop. In wayland, when a wl_buffer is attached to a surface,
   e_client_util_move_resize_without_frame will be called in _e_comp_wl_
   surface_state_commit. And it makes sure that ec and ec->frame have
   correct size.

Change-Id: I9c3540c94baa0b1f22b0732650f8cee63c3c4d59

9 years agoe_drm_buffer: creating a wl_buffer resource before referencing a tizen_buffer in... 26/46626/1 accepted/tizen/mobile/20150825.060835 accepted/tizen/tv/20150825.060848 accepted/tizen/wearable/20150825.060854 submit/tizen/20150824.055555
Boram Park [Mon, 24 Aug 2015 07:58:45 +0000 (16:58 +0900)]
e_drm_buffer: creating a wl_buffer resource before referencing a tizen_buffer in backend side

Change-Id: I614b2e168745c95aebd6b4d5a70cd338491680fc

9 years agoe_comp_wl: set parent's layer to subsurface accepted/tizen/mobile/20150824.002732 accepted/tizen/tv/20150824.002744 accepted/tizen/wearable/20150824.002757 submit/tizen/20150822.055555
Boram Park [Sat, 22 Aug 2015 09:20:39 +0000 (18:20 +0900)]
e_comp_wl: set parent's layer to subsurface

Change-Id: If2e6c7dd0b5395f523d0d6d584805b46d192c3d1

9 years agoapply map to subsurface and black bg_rect also 82/46582/1
Boram Park [Sat, 22 Aug 2015 06:49:18 +0000 (15:49 +0900)]
apply map to subsurface and black bg_rect also

Change-Id: I13e6763144a36e2cfc4c7827cfc11b2ead05e8a0

9 years agomove below subsurfaces when parent ec is moved 81/46581/1
Boram Park [Sat, 22 Aug 2015 06:46:42 +0000 (15:46 +0900)]
move below subsurfaces when parent ec is moved

Change-Id: I715525ebe3b95295f04c88924aefaa9ebf519743

9 years agoe_client: move transformed client using right center postion 48/46548/1
MinJeong Kim [Fri, 21 Aug 2015 11:39:44 +0000 (20:39 +0900)]
e_client: move transformed client using right center postion

Change-Id: I29b55fe3a6d95a9c57e4efff4c3ee83b3be06123
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoe_client: added transform APIs 02/46502/1
MinJeong Kim [Fri, 21 Aug 2015 05:30:15 +0000 (14:30 +0900)]
e_client: added transform APIs

Change-Id: I684aee7ed034e3819bbfeb9611940335cfc62e21
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoshow below_bg_rectangle if ec->frame is already mapped 71/46271/1
Boram Park [Wed, 19 Aug 2015 02:17:28 +0000 (11:17 +0900)]
show below_bg_rectangle if ec->frame is already mapped

Change-Id: Iac16149f9e71e014830a65ac707fec68a6cc5ca8

9 years agoe_comp_wl: fixed build warning 06/46206/1
Gwanglim Lee [Tue, 18 Aug 2015 04:42:59 +0000 (13:42 +0900)]
e_comp_wl: fixed build warning

Change-Id: Id83c1454f2526ed842328046dd4a690d7c8c5a22

9 years agodemo: transform with zoommed object 02/46202/1
MinJeong Kim [Tue, 18 Aug 2015 01:59:49 +0000 (10:59 +0900)]
demo: transform with zoommed object

Change-Id: I44ff1e3d8247f36a17a72372c4d97316538bc13e
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoDemo: recalculate x, y position when resizing(w/ transformed) ends 52/46152/1
Duna Oh [Mon, 17 Aug 2015 08:25:03 +0000 (17:25 +0900)]
Demo: recalculate x, y position when resizing(w/ transformed) ends

Change-Id: I6886688f6eb2f1a8683d62db967c9cd6a04afad7
Signed-off-by: Duna Oh <duna.oh@samsung.com>
9 years agoe_comp: added new E_EVENT_COMPOSITOR_FPS_UPDATE event type accepted/tizen/mobile/20150816.062243 accepted/tizen/tv/20150816.062355 accepted/tizen/wearable/20150816.062546 submit/tizen/20150815.135314
Gwanglim Lee [Sat, 15 Aug 2015 13:52:49 +0000 (22:52 +0900)]
e_comp: added new E_EVENT_COMPOSITOR_FPS_UPDATE event type

Change-Id: I4f36c584a024847bc9359f1e83be6dd0b15d1004

9 years agoDemo: sync size of transform object with new commited buffer 97/46097/1
MinJeong Kim [Sat, 15 Aug 2015 06:42:04 +0000 (15:42 +0900)]
Demo: sync size of transform object with new commited buffer

Change-Id: I2cba64a6f9e9d609d7df519c82a196269ee33dd3
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agosend x,y pos in surface-relative coordinate 79/46079/2 accepted/tizen/mobile/20150815.071836 accepted/tizen/tv/20150815.072131 accepted/tizen/wearable/20150815.072555 submit/tizen/20150814.123636
Boram Park [Fri, 14 Aug 2015 04:48:31 +0000 (13:48 +0900)]
send x,y pos in surface-relative coordinate

Change-Id: I5cae6f76c18b6139362cb3f12664fae4971e45cd

9 years agoe_comp_wl_input: resize cursor's geometry when get a configure 78/46078/1
Duna Oh [Fri, 14 Aug 2015 02:15:41 +0000 (11:15 +0900)]
e_comp_wl_input: resize cursor's geometry when get a configure

Change-Id: I63d8a1855e4bd8967c49360971a0e9ef57a8f7fa
Signed-off-by: Duna Oh <duna.oh@samsung.com>
9 years agoe_client: refacto function for visibility calculation 55/45955/1 accepted/tizen/mobile/20150813.083506 accepted/tizen/tv/20150813.083516 accepted/tizen/wearable/20150813.083527 submit/tizen/20150813.023548
Gwanglim Lee [Wed, 12 Aug 2015 13:29:36 +0000 (22:29 +0900)]
e_client: refacto function for visibility calculation
and fix focus problem that top visible window can't get focused.

Change-Id: I0607a5efcbf8dca4dd16a1b936d0e778ae0562b5

9 years agoe_pointer: check cursor whether it is by client or not 47/45847/1
MinJeong Kim [Wed, 12 Aug 2015 02:35:05 +0000 (11:35 +0900)]
e_pointer: check cursor whether it is by client or not

Change-Id: I4ec68dd1abde798650377ae571e3efb726d4d151
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoe_pointer: do not set type for resize mode 88/45788/1
MinJeong Kim [Tue, 11 Aug 2015 09:01:45 +0000 (18:01 +0900)]
e_pointer: do not set type for resize mode

If there is a cursor which is set by client, to switch cursor for new resize
mode is also client's role.

Change-Id: I8a9ad9b77d93ba6ece2a91ad6efb1bb0bd8399d9
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoDemo: fixed unwanted move while transformed client is resizing 69/45769/1
MinJeong Kim [Tue, 11 Aug 2015 05:06:07 +0000 (14:06 +0900)]
Demo: fixed unwanted move while transformed client is resizing

Change-Id: I7a1334d5c1be0055e0c721e03dba0dfd0e8631a0
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoDemo: Do not transform_unset during transforming(mouse draged) 26/45726/1 submit/tizen/20150811.074955
Duna Oh [Tue, 11 Aug 2015 01:15:54 +0000 (10:15 +0900)]
Demo: Do not transform_unset during transforming(mouse draged)

Change-Id: Ica57fffcb5961d0766aa98a304f271081fd7a2a5
Signed-off-by: Duna Oh <duna.oh@samsung.com>
9 years agoDemo: support mouse move for resizing transformed client 12/45712/1
MinJeong Kim [Mon, 10 Aug 2015 12:56:09 +0000 (21:56 +0900)]
Demo: support mouse move for resizing transformed client

Change-Id: I07a960572822208ffac6fe750f4a86d1fd2b3ca9
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoDemo: apply transform_set from zero degree not from transformed degree 06/45706/1
Duna Oh [Mon, 10 Aug 2015 12:48:13 +0000 (21:48 +0900)]
Demo: apply transform_set from zero degree not from transformed degree

Change-Id: Ief614107b41ce0245b173a427ee664e31c8829de
Signed-off-by: Duna Oh <duna.oh@samsung.com>
9 years agoremove subc from subsurface list of parent when subc destoryed 81/45681/1 accepted/tizen/mobile/20150811.013621 accepted/tizen/tv/20150811.013633 accepted/tizen/wearable/20150811.013649 submit/tizen/20150810.055113
Boram Park [Mon, 10 Aug 2015 08:20:46 +0000 (17:20 +0900)]
remove subc from subsurface list of parent when subc destoryed

Change-Id: Iedc5ab225da7940f35d67b41c0794ea554b90512

9 years agoif no e_demo ec, give focus to the topmost ec 36/45636/4
Boram Park [Mon, 10 Aug 2015 05:08:41 +0000 (14:08 +0900)]
if no e_demo ec, give focus to the topmost ec

Change-Id: I044bb1ff9bd630ca7febec5e9ca855ac3272e87c

9 years agoDemo: sync size and position 31/45631/1
MinJeong Kim [Mon, 10 Aug 2015 04:01:12 +0000 (13:01 +0900)]
Demo: sync size and position

Change-Id: I4f0a1efbbb0cbd9b8cbc0f420bb77b17f82fa14c
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoe_client: use appropriate coordinate to set resize mode 27/45627/3
MinJeong Kim [Mon, 10 Aug 2015 03:39:59 +0000 (12:39 +0900)]
e_client: use appropriate coordinate to set resize mode

Change-Id: I9a8376b64e5feaafd29b6c231f9f4bd4883bc213
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoDemo: apply transform_set when drags mouse (pressed and moved) 22/45622/2
Duna Oh [Mon, 10 Aug 2015 02:28:00 +0000 (11:28 +0900)]
Demo: apply transform_set when drags mouse (pressed and moved)

Change-Id: I31d7f51b2bbd60a9a0f0a32ec0ae7c76fbe6a933
Signed-off-by: Duna Oh <duna.oh@samsung.com>
9 years agocreate below_bg_rectangle object if ec is "video" window 28/45628/3
Boram Park [Mon, 10 Aug 2015 02:35:25 +0000 (11:35 +0900)]
create below_bg_rectangle object if ec is "video" window

   Without subsurface, there is a problem that we can see below-window
   through video window.

Change-Id: Iff029c753b583f49e0c484543d512d3b50f6ba4c

9 years agoDemo: use stored output x, y position instead of transformed position 07/45607/1 accepted/tizen/mobile/20150809.064315 accepted/tizen/tv/20150809.064325 accepted/tizen/wearable/20150809.064339 submit/tizen/20150808.055555
MinJeong Kim [Sat, 8 Aug 2015 08:46:12 +0000 (17:46 +0900)]
Demo: use stored output x, y position instead of transformed position

Change-Id: I9777b16e2a78a7a792946b00d7b7cfb6be78ff61
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agodemo: modified transformed x, y position in output coordinate, not canvas coordinate... 04/45604/2
Gwanglim Lee [Sat, 8 Aug 2015 07:43:41 +0000 (16:43 +0900)]
demo: modified transformed x, y position in output coordinate, not canvas coordinate only if transform is enabled

Change-Id: Ia81245541792222fe387239aab8241701a0f8565

9 years agoRevert " Demo: modified transformed x, y position in output coordinate, not canvas... 02/45602/2
Gwanglim Lee [Sat, 8 Aug 2015 07:15:45 +0000 (00:15 -0700)]
Revert " Demo: modified transformed x, y position in output coordinate, not canvas coordinate"

This reverts commit c09a6ffc94dec1905e3ca6a8c17583ef32bda6a3.

Change-Id: Ifd9c5a64ad7efd3da858e96cea90b4df1cf9ff51

9 years agoMerge " Demo: modified transformed x, y position in output coordinate, not canvas...
Gwanglim Lee [Sat, 8 Aug 2015 07:14:28 +0000 (00:14 -0700)]
Merge " Demo: modified transformed x, y position in output coordinate, not canvas coordinate" into tizen

9 years agonot giving focus automatically to e_demo window when moving mouse 00/45600/1
Boram Park [Sat, 8 Aug 2015 07:01:23 +0000 (16:01 +0900)]
not giving focus automatically to e_demo window when moving mouse

Change-Id: I3ff64064a4ca4dbd35f81fb4f1facf2832d16346

9 years ago Demo: modified transformed x, y position in output coordinate, not canvas coordinate 97/45597/1
Duna Oh [Sat, 8 Aug 2015 06:23:27 +0000 (15:23 +0900)]
 Demo: modified transformed x, y position in output coordinate, not canvas coordinate

Change-Id: Id4ac12e9d36bfbcc62007d74fa4ee45f33c032cb
Signed-off-by: Duna Oh <duna.oh@samsung.com>
9 years agoadd opaque_state to support efl_util_set_window_opaque_state() 59/45559/1 submit/tizen/20150807.102244
Boram Park [Fri, 7 Aug 2015 08:07:14 +0000 (17:07 +0900)]
add opaque_state to support efl_util_set_window_opaque_state()

Change-Id: I2eca25ad7752938981eb231cb6bb93b4e434731f

9 years agoDemo: get the current Evas_Map and apply 30 degree rotation each time 07/45507/1
Duna Oh [Fri, 7 Aug 2015 03:54:39 +0000 (12:54 +0900)]
Demo: get the current Evas_Map and apply 30 degree rotation each time

Change-Id: I629f2901b4a2a5fcf5c3f3fd9f9d5ff592c1a835
Signed-off-by: Duna Oh <duna.oh@samsung.com>
9 years agounset alpha to HW underlay video e_client. 04/45504/1
Boram Park [Fri, 7 Aug 2015 02:25:10 +0000 (11:25 +0900)]
unset alpha to HW underlay video e_client.

Change-Id: I5f2e6084d714e81298e3f257c5d2de637c129761

9 years agoDemo: added transform protocol for transform(rotator) mode 22/45422/2 accepted/tizen/mobile/20150806.065733 accepted/tizen/tv/20150806.065742 accepted/tizen/wearable/20150806.065756 submit/tizen/20150806.024618
MinJeong Kim [Thu, 6 Aug 2015 02:19:34 +0000 (11:19 +0900)]
Demo: added transform protocol for transform(rotator) mode

Change-Id: I473569f40201202cd859dad5188960090c7f3d2d

9 years agoe_log: changed e_log_dom to be exported 08/45408/1
Gwanglim Lee [Wed, 5 Aug 2015 23:41:33 +0000 (08:41 +0900)]
e_log: changed e_log_dom to be exported

Change-Id: I9c32fb32a9a8bc3da238f2c19f043023efa1c1ff

9 years agoe_client: added E_Transient to support various transient_fortype 51/45351/2
MinJeong Kim [Wed, 5 Aug 2015 05:52:29 +0000 (14:52 +0900)]
e_client: added E_Transient to support various transient_fortype

- The enum E_Transient indicates transient_for type.

  E_TRANSIENT_ABOVE : stack a client above its parent
  E_TRANSIENT_BELOW : stack a client below its parent
- Restack transients with transient_policy

Change-Id: I433927c7504f46bc13ac2a68fa380581e170fcfd
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoe_log: added ELOG and ELOGF macros to support formatted log message 54/45354/4
Gwanglim Lee [Wed, 5 Aug 2015 06:06:22 +0000 (15:06 +0900)]
e_log: added ELOG and ELOGF macros to support formatted log message

Change-Id: I55929316156846d3d51d5188e0bdcdfcf02b1d81

9 years agoe_comp_wl: check if ec is destroyed 68/45168/1 accepted/tizen/mobile/20150803.094017 accepted/tizen/tv/20150803.094107 accepted/tizen/wearable/20150803.094041 submit/tizen/20150803.050034
Boram Park [Mon, 3 Aug 2015 08:37:24 +0000 (17:37 +0900)]
e_comp_wl: check if ec is destroyed

Change-Id: Id0e0afff18d042b5370349f3aadf0718fec4b59b

9 years agoremove tizen_surface_extension protocol 40/45140/1
Boram Park [Mon, 3 Aug 2015 03:38:41 +0000 (12:38 +0900)]
remove tizen_surface_extension protocol

Change-Id: I456d49f87eeb5263e6c525977e1dd8550f6aa2ed

9 years agoremove tizen_transient_for protocol 39/45139/1
Boram Park [Mon, 3 Aug 2015 03:29:10 +0000 (12:29 +0900)]
remove tizen_transient_for protocol

Change-Id: If3fce63c871bb725275b1b12fadea1affb0c88cf

9 years agoremove tizen_subsurface protocol 38/45138/1
Boram Park [Mon, 3 Aug 2015 01:39:16 +0000 (10:39 +0900)]
remove tizen_subsurface protocol

Change-Id: I1c726b6e62c2edbfee90badedcfee05e026d8d1c

9 years agoe_comp_wl: use buffer resource as hash key instead of resource id 80/44980/1 accepted/tizen/mobile/20150731.005122 accepted/tizen/tv/20150731.005213 accepted/tizen/wearable/20150731.005253 submit/tizen/20150730.150138
MinJeong Kim [Thu, 30 Jul 2015 05:51:24 +0000 (14:51 +0900)]
e_comp_wl: use buffer resource as hash key instead of resource id

 - Use buffer resource pointer as key of hash table for client - buffer
pair
 - Ref/Unref e_client when the e_client is added to hash table first time
and when the e_client is removed from hash table.

Change-Id: I157139e9a5f96977a7af421dc5f4128eb42f9ddd
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoe_comp_wl: clear comp object immediately instead of unref e_client 88/44888/1 accepted/tizen/mobile/20150730.014214 accepted/tizen/tv/20150730.014332 accepted/tizen/wearable/20150730.014535 submit/tizen/20150729.082725
MinJeong Kim [Wed, 29 Jul 2015 05:58:43 +0000 (14:58 +0900)]
e_comp_wl: clear comp object immediately instead of unref e_client

When a buffer of deleted e_client destroied, it has unrefed e_client and freed
e_client. but if there remains some action using the e_client such as ecore
event, it's able to try to use e_client which is freed before. for example, if
the event free function is called after buffer destroy, it will try to unref
e_client which is freed already.

For prevent those problem, it's desirable to clear comp object immediately
insted of to unref e_client.

related patch: feaa183a35fbbae4fcf6b9cf27eaee3e7432db73

Change-Id: I47c971b5ae1d1a5ff3a6c11bb5e80ad21c9b9224
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoRevert "e_client: check hash before unref ec" 87/44887/1
MinJeong Kim [Wed, 29 Jul 2015 06:20:02 +0000 (15:20 +0900)]
Revert "e_client: check hash before unref ec"

This reverts commit fa3ae0605597110357dc7f1a6bc20fbf087133ae.

Change-Id: I5fd77ec3c58c7d789b7379e3331a7f5d547249b0

9 years agoe_comp: add post_update add/purge funcs to fix refcounting for e_client accepted/tizen/mobile/20150729.011209 accepted/tizen/tv/20150729.011338 accepted/tizen/wearable/20150729.011416 submit/tizen/20150728.113247
Gwanglim Lee [Tue, 28 Jul 2015 11:31:06 +0000 (20:31 +0900)]
e_comp: add post_update add/purge funcs to fix refcounting for e_client

Change-Id: Ic97b5865a830568d270a5d2ff048bae2f8eff06b

9 years agoe_client: check hash before unref ec 21/44821/1
MinJeong Kim [Tue, 28 Jul 2015 07:14:26 +0000 (16:14 +0900)]
e_client: check hash before unref ec

Change-Id: I1e4c79ce8c9e8bfeaf3f53e3f2654fae03bd6022
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agofix build warnings accepted/tizen/mobile/20150728.070048 accepted/tizen/tv/20150728.070031 accepted/tizen/wearable/20150728.070037 submit/tizen/20150727.144438
Gwanglim Lee [Mon, 27 Jul 2015 14:44:14 +0000 (23:44 +0900)]
fix build warnings

Change-Id: I46cdf4941a40cc6266777078dfc88707e43cda8d

9 years agoe_client: fix refcounting for e_client to fix memory corruption.
Gwanglim Lee [Mon, 27 Jul 2015 14:40:31 +0000 (23:40 +0900)]
e_client: fix refcounting for e_client to fix memory corruption.

double-free error has occurred while freeing e_client in _e_client_free.

e_object_unref(ec)
-> _e_client_free(ec)
 -> evas_object_del(ec->frame)
   -> _e_comp_object_intercept_hook_call -> e_object_ref(ec)
   -> _e_comp_object_intercept_hook_call -> e_object_unref(ec) -> _e_client_free -> free
 -> free: double-free

to resolve this problem, we add reference count inc/dec codes to _e_client_free.

Change-Id: I8b2beaa0c4b2882c6421db0bbe0f00e38d3defee

9 years agoe_comp_wl: remove all e_client elements from post_updates list before adding it
Gwanglim Lee [Mon, 27 Jul 2015 14:14:44 +0000 (23:14 +0900)]
e_comp_wl: remove all e_client elements from post_updates list before adding it

Change-Id: Id3ffa99d8477821d7df92a405781753446a2d5b1

9 years agoe_test_helper: use resource id instead of window id 73/44573/1
MinJeong Kim [Thu, 23 Jul 2015 10:16:22 +0000 (19:16 +0900)]
e_test_helper: use resource id instead of window id

Change-Id: I1fd0c8e7c868e7e43f3f033c69359575cd591dbd
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoe_pixmap: manage deleted pixmap hash table for some pixmaps that will be freed soon 41/44541/5 accepted/tizen/mobile/20150723.121324 accepted/tizen/tv/20150723.121344 accepted/tizen/wearable/20150723.121407 submit/tizen/20150723.044444
MinJeong Kim [Thu, 23 Jul 2015 05:43:35 +0000 (14:43 +0900)]
e_pixmap: manage deleted pixmap hash table for some pixmaps that will be freed soon

when enlightenment try to create new e_pixmap, e_pixmap hash table is checked
first with surface resource id as a hash key. if there is a pixmap data that
was registered by given key, e_pixmap is NOT newly created but its reference
count is just increased.

This mechanism can generate problem when more than two successive surface
resources are allocated same address. enlightenment have delayed free of e_pixmap
because there are a lot of thing to do before the pixmap is freed. so interval
between removal of a e_pixmap for previous surface resource and creation of
e_pixmap for next surface resource can be made. When the interval is
made and latest surface resource is allocated same address with previous
surface resource, latest surface resource fails to create new e_pixmap
and it will use e_pixmap for previous surface and it can cause abuse of
memory.

To fix this problem, hash table for deleted pixmap is newly added.

Change-Id: I54ead4101210e3dda75d03d18a1e3e840dd8813b
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoe_client: remove e_client from e_comp's render post list when freeing. 46/44546/1
Gwanglim Lee [Thu, 23 Jul 2015 06:46:30 +0000 (15:46 +0900)]
e_client: remove e_client from e_comp's render post list when freeing.

This prevents double-free error on _e_comp_canvas_render_post if ec remains
in e_comp's post_updates list even if it was deleted.

Change-Id: I2e3be9a667ca4590bc2e5587fa963034c5b57cd9

9 years agofix build break for x11 27/44527/1
Boram Park [Thu, 23 Jul 2015 04:31:51 +0000 (13:31 +0900)]
fix build break for x11

Change-Id: I3a141ac582f72676e0b35ee983868bd6f20f20fc

9 years agocheck if cdata is NULL 24/44524/2
Boram Park [Thu, 23 Jul 2015 03:34:06 +0000 (12:34 +0900)]
check if cdata is NULL

Change-Id: Iff905872bf5c8d8dbd7450d4158aecfb2cb55b10

9 years agowl_desktop_shell: Fix xdg_shell_surface_destroy 93/43893/3
Mun, Gwan-gyeong [Wed, 15 Jul 2015 06:09:39 +0000 (15:09 +0900)]
wl_desktop_shell: Fix xdg_shell_surface_destroy

Change-Id: Ic92a46259bf4e67ba8e29037a43913aa4bf236a4

9 years agowl_screenshot: remove unused code to reduce warning 12/44512/1
Gwanglim Lee [Thu, 23 Jul 2015 01:24:45 +0000 (10:24 +0900)]
wl_screenshot: remove unused code to reduce warning

Change-Id: Ib94d013017982ec193cbaa6d890647bfdf3dc6d3

9 years agoe_win: fix build warnings 11/44511/1
Gwanglim Lee [Thu, 23 Jul 2015 01:24:02 +0000 (10:24 +0900)]
e_win: fix build warnings

Change-Id: Ibfe0c453a2b872cc7860e4272964ba8b9b520f46

9 years agoe_info_server: fix build warning 10/44510/1
Gwanglim Lee [Thu, 23 Jul 2015 01:23:16 +0000 (10:23 +0900)]
e_info_server: fix build warning

Change-Id: I0ad48848657d53a7aa1fbc993c1e32a9faacbc55

9 years agoe_pixmap: fix build warning 09/44509/1
Gwanglim Lee [Thu, 23 Jul 2015 01:22:32 +0000 (10:22 +0900)]
e_pixmap: fix build warning

Change-Id: Icbad9e7f1217f3bedb66c362af5fc213ae1a270a

9 years agoe_comp_wl_input: remove unused code to reduce warnings 08/44508/1
Gwanglim Lee [Thu, 23 Jul 2015 01:21:29 +0000 (10:21 +0900)]
e_comp_wl_input: remove unused code to reduce warnings

Change-Id: I3d6a064281d55b4e43af60d40513004d0aa7bbd7

9 years agoe_comp_wl_data: comment out unused code to reduce warnings 07/44507/1
Gwanglim Lee [Thu, 23 Jul 2015 01:12:40 +0000 (10:12 +0900)]
e_comp_wl_data: comment out unused code to reduce warnings

Change-Id: I6738a6aa00ef45e4a9bdc2f5a8281bd974822ece

9 years agoe_comp_wl: comment out unused function to reduce warnings 06/44506/1
Gwanglim Lee [Thu, 23 Jul 2015 01:11:38 +0000 (10:11 +0900)]
e_comp_wl: comment out unused function to reduce warnings

Change-Id: Id59d95a5e3508b1d9bbaeb586beba77d8f404900

9 years agoe_object: added OBJECT_HASH_CHECK feature. 78/44478/2
Gwanglim Lee [Wed, 22 Jul 2015 11:01:58 +0000 (20:01 +0900)]
e_object: added OBJECT_HASH_CHECK feature.

E_Object's default magic check could trigger a use-after-free memory error.
In order to prevent it, we added OBJECT_HASH_CHECK that is checking whether
E_Object is valid or not using hash pointer.

This feature will be enabled if E_OBJECT_HASH_CHECK env var is '1'.

Change-Id: Ieb603b3cf25e63b51f8e88b86a8f678fae9e79bc

9 years agoadd libwayland-extension-server dependency to include it within binary 51/44451/1 submit/tizen/20150722.053256
Boram Park [Wed, 22 Jul 2015 05:20:27 +0000 (14:20 +0900)]
add libwayland-extension-server dependency to include it within binary

Change-Id: I2e76d669f4959f9c273cff451aab5e0e90427fb6

9 years agousing tizen-extension wayland protocol instead of including *protocol.c directly 43/44443/1
Boram Park [Mon, 20 Jul 2015 01:31:48 +0000 (10:31 +0900)]
using tizen-extension wayland protocol instead of including *protocol.c directly

Change-Id: I4f6ec5529b6da6cf5a255694b9cc4f806b5885cc

9 years agoe_pixmap: added own_cdata again to prevent crash 15/44415/1
Gwanglim Lee [Tue, 21 Jul 2015 13:19:16 +0000 (22:19 +0900)]
e_pixmap: added own_cdata again to prevent crash

Change-Id: I0f90f36e58153cd443e5299ca50a9231a15b50b6

9 years agoe_pixmap: added the E_Pixmap hook feature. 91/44391/1
Gwanglim Lee [Tue, 21 Jul 2015 10:11:57 +0000 (19:11 +0900)]
e_pixmap: added the E_Pixmap hook feature.
This allows e's sub-module to know when wl_surface is destroyed.

Change-Id: I8c90733f1b00562de74d578d7fd0d555fa2cce5e

9 years agoe_pixmap: refactoring e_pixmap_cdata_set code to accept NULL argument when cleaning up 88/44388/1
Gwanglim Lee [Tue, 21 Jul 2015 09:58:05 +0000 (18:58 +0900)]
e_pixmap: refactoring e_pixmap_cdata_set code to accept NULL argument when cleaning up

Change-Id: I0880892e4a44c2f020b9e1f6711780fb780c8528

9 years agoe_comp_wl: added e_pixmap_cdata_set to clean up pixmap's E_Comp_Wl_Client_Data before... 87/44387/1
Gwanglim Lee [Tue, 21 Jul 2015 09:53:17 +0000 (18:53 +0900)]
e_comp_wl: added e_pixmap_cdata_set to clean up pixmap's E_Comp_Wl_Client_Data before freeing E_Client

Change-Id: Id64563f179a84b04bb7d2c57b941ef61f7bdc390

9 years agoe_comp_wl: added missing e_pixmap_free to wl_surface::destroy request handler if... 86/44386/1
Gwanglim Lee [Tue, 21 Jul 2015 09:46:45 +0000 (18:46 +0900)]
e_comp_wl: added missing e_pixmap_free to wl_surface::destroy request handler if e doesn't make E_Client for client yet.

Change-Id: I5d6914a29fbdbc5c45a45db08ff7cd990e465ce8

9 years agoe_pixmap: wl client pixmaps now use a different method for creating the pixmap id 83/43983/2 accepted/tizen/mobile/20150717.055854 accepted/tizen/tv/20150717.055904 accepted/tizen/wearable/20150717.055911 submit/tizen/20150717.004539
Duna Oh [Thu, 16 Jul 2015 02:14:06 +0000 (11:14 +0900)]
e_pixmap: wl client pixmaps now use a different method for creating the pixmap id

Applied this commit
 1. https://git.enlightenment.org/core/enlightenment.git/commit/?id=96f07bff8ae46ff5a0daff726aafaa86bd0ef8d4
 -> wl client pixmaps now use a different method for creating the pixmap id
 2. https://git.enlightenment.org/core/enlightenment.git/commit/?id=bb77ddf22c21a879755674321765f61d9f0ec406
 -> correctly apply wl shell client border states only for non-internal clients

enlightenment_info : add items shown on list - win_id, resource_id, and pid

Change-Id: Iacab3fec81d8b8bb4b9d20400c6eb67b0ef0ef0a
Signed-off-by: Duna Oh <duna.oh@samsung.com>
9 years agoadd null check to avoid crash when ec doesn't have parent 31/43931/2 accepted/tizen/mobile/20150716.061240 accepted/tizen/tv/20150716.061254 accepted/tizen/wearable/20150716.061302 submit/tizen/20150716.014447
Boram Park [Wed, 15 Jul 2015 11:30:27 +0000 (20:30 +0900)]
add null check to avoid crash when ec doesn't have parent

Change-Id: I04d77a44bc49dcff8bbe72041b734aa6ae43cf4e

9 years agoe_comp_wl: add null check to avoid crash if client is no sub surface and needs to... 04/43904/1
Gwanglim Lee [Wed, 15 Jul 2015 07:28:01 +0000 (16:28 +0900)]
e_comp_wl: add null check to avoid crash if client is no sub surface and needs to change viewport

Change-Id: I8713d934b0da7a5a54deea9d456e44bc8683d356

9 years agocorrect enlightenment_info's description 71/43871/1 accepted/tizen/mobile/20150715.063935 accepted/tizen/tv/20150715.063942 accepted/tizen/wearable/20150715.063954 submit/tizen/20150715.005032
Boram Park [Wed, 15 Jul 2015 01:10:12 +0000 (10:10 +0900)]
correct enlightenment_info's description

Change-Id: I23b271ace5b853e0d22e8fe402db1ce64eb9b729

9 years agoadd eina_log_levels & eina_log_path to enlightenment_info 03/43803/1
Boram Park [Tue, 14 Jul 2015 07:37:08 +0000 (16:37 +0900)]
add eina_log_levels & eina_log_path to enlightenment_info

Change-Id: I42d0a3af1f34313f4c475a2659bde034917d5555

9 years agoinit fake layer for client alert layer 01/43701/1 accepted/tizen/mobile/20150714.002055 accepted/tizen/tv/20150714.002103 accepted/tizen/wearable/20150714.002110 submit/tizen/20150713.084021
MinJeong Kim [Mon, 13 Jul 2015 08:31:19 +0000 (17:31 +0900)]
init fake layer for client alert layer

Change-Id: I047a7fdce3da2bce02e1167c8fa941dee7a6d3a0
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoChanged role for gl warning popup 89/43689/1
MinJeong Kim [Mon, 13 Jul 2015 07:56:27 +0000 (16:56 +0900)]
Changed role for gl warning popup

Change-Id: I97188278ce725f0ab9f9c8ed6c88cc2e0f524000
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoe_client: added new client layer ALERT 87/43687/1
MinJeong Kim [Mon, 13 Jul 2015 07:47:39 +0000 (16:47 +0900)]
e_client: added new client layer ALERT

Change-Id: I054e55079e3aec9518b7e976a484ec8d5f014e69
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoChanged visibility calculation 58/43358/1 accepted/tizen/mobile/20150709.001524 accepted/tizen/tv/20150709.001537 accepted/tizen/wearable/20150709.001549 submit/tizen/20150708.100717
MinJeong Kim [Wed, 8 Jul 2015 09:28:04 +0000 (18:28 +0900)]
Changed visibility calculation

Calculation of visibility before client evaluation might miss latest changes
of clients and cause focus policy conflict (between new window and top stack).
so the calculation is better to be executed after client evaluation
and some callbacks of evas event(restack, move, resize).

Change-Id: I3f618b9f0877697111741c1eeab3e1fc2941a0ea
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoe_comp_wl: added alpha bg and focus callback for gl warning popup 57/43357/1
MinJeong Kim [Wed, 8 Jul 2015 09:27:31 +0000 (18:27 +0900)]
e_comp_wl: added alpha bg and focus callback for gl warning popup

Change-Id: I0d5d628482923df21f7ec9ae184bf237e0c0485d
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoExtended scope of mananged client layer 90/43090/1 accepted/tizen/mobile/20150708.065929 accepted/tizen/tv/20150708.065940 accepted/tizen/wearable/20150708.065952 submit/tizen/20150708.024550
MinJeong Kim [Tue, 7 Jul 2015 12:09:34 +0000 (21:09 +0900)]
Extended scope of mananged client layer

Extended scope of mananged client layer to
E_LAYER_CLIENT_NOTIFICATION_HIGH.

Change-Id: I8dae90d02a060bf57d9f2105522386c3ce370463
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agofix window dump size 42/42942/2
Boram Park [Mon, 6 Jul 2015 07:23:23 +0000 (16:23 +0900)]
fix window dump size

Change-Id: Id239a3ba4c42397de594717e6f03053dad3d9ebf

9 years agoTo fix build break, add e_info_server.h into ENLIGHTENMENTHEADERS to be installed 76/42876/2 submit/tizen/20150703.125223
Gwanglim Lee [Fri, 3 Jul 2015 10:21:36 +0000 (19:21 +0900)]
To fix build break, add e_info_server.h into ENLIGHTENMENTHEADERS to be installed

Change-Id: I1b72600645926b2ad0b626dcb78511b28bc86ea3

9 years agoe_comp_wl: add 'conformant' variable to E_Comp_Wl_Client_Data 64/42864/2
Duna Oh [Fri, 3 Jul 2015 08:31:17 +0000 (17:31 +0900)]
e_comp_wl: add 'conformant' variable to E_Comp_Wl_Client_Data

Change-Id: If3a8a0895cdd38a040763d073eb0d0f270213948
Signed-off-by: Duna Oh <duna.oh@samsung.com>
9 years agoFix coding conventions and style. 68/42868/1
Gwanglim Lee [Fri, 3 Jul 2015 08:50:44 +0000 (17:50 +0900)]
Fix coding conventions and style.
Change name of request to dump from shot.

Change-Id: I55a52ead7d983ce9223fa7835bea6d3dbde4cc72

9 years agoadd shot_topvwins to enlightenment_info 58/42858/1
Boram Park [Wed, 1 Jul 2015 05:45:03 +0000 (14:45 +0900)]
add shot_topvwins to enlightenment_info

Change-Id: I14520da2eb4d7644d3fafd4794ac3ced9f68734d

9 years agoe_scale: update scale when output device is created 06/42706/2 accepted/tizen/mobile/20150703.014352 accepted/tizen/tv/20150703.014412 accepted/tizen/wearable/20150703.014452 submit/tizen/20150702.024916
MinJeong Kim [Wed, 1 Jul 2015 14:29:14 +0000 (23:29 +0900)]
e_scale: update scale when output device is created

 e_scale is updated only at init time and the output of calculation even
have been worthless, because there was no output so ecore_wl_dpi_get()
have returned default value at that time.
 To get correct scale value, enlightenment has to re-calculate when new output
device is created.

Change-Id: I0eb40841d5fb7032984641fb2a8ccbfdde4e6bc6
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agocomp-wl: show warning window to notify failure of gl init 56/42656/4
MinJeong Kim [Wed, 1 Jul 2015 08:19:20 +0000 (17:19 +0900)]
comp-wl: show warning window to notify failure of gl init

To inform that gl init was failed, enlightenment creates elm_window by itself,
and checks pid of wl_client that is requesting "get_shell_surface". These check
will help to determine if it is internal window or not.

Change-Id: I528939ee2dbbf275c4a1d185ec86f0a3968b234e
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
9 years agoadd wayland-extension-server-devel for build dependency 13/42413/1 accepted/tizen/mobile/20150629.092756 accepted/tizen/tv/20150629.092822 accepted/tizen/wearable/20150629.092830 submit/tizen/20150629.043600
Boram Park [Mon, 29 Jun 2015 04:00:05 +0000 (13:00 +0900)]
add wayland-extension-server-devel for build dependency

Change-Id: I682078892e5a06a4440896c9db78ea79e3591eb7