platform/upstream/efl.git
7 years agoelm_map: Fix work of elm_map_overlay_icon_set if icon is NULL.
se.osadchy [Tue, 21 Mar 2017 18:13:15 +0000 (11:13 -0700)]
elm_map: Fix work of elm_map_overlay_icon_set if icon is NULL.

Summary:
Delete check on NULL for icon object due to incorrect work. Function must delete
icon in map overlay (according to documentation) if we set NULL, but with this check -
nothing happening and after elm_map_overlay_icon_get we have not NULL returned value.
@fix

Reviewers: cedric, Hermet, raster, jpeg

Reviewed By: cedric

Subscribers: artem.popov

Differential Revision: https://phab.enlightenment.org/D4720

7 years agoecore: proper macro usage for double comparision. Summary: The comparisions are done...
Umesh Tanwar [Tue, 21 Mar 2017 18:11:19 +0000 (11:11 -0700)]
ecore: proper macro usage for double comparision. Summary: The comparisions are done between doubles.  EINA_FLT_EQ -> EINA_DBL_EQ

Summary: Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>

Reviewers: singh.amitesh, cedric

Subscribers: jpeg, atulfokk

Differential Revision: https://phab.enlightenment.org/D4719

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoecore_evas_extn: do not update plug image when lockfile is invalid.
Minkyoung Kim [Tue, 21 Mar 2017 18:05:43 +0000 (11:05 -0700)]
ecore_evas_extn: do not update plug image when lockfile is invalid.

Summary:
This prevent invalid shared memory access.
Invalid access occur when server is resized sequentially from now to A-size
to B-size, and client receive A resize message after resizing B.
Then client try to render plug image with A-size, but shared memory is B-size
buffer. Size are mismatch. This makes segmentation fault when uploading texture(gl)
or rendering image(sw).

Test Plan: Indicator rendering on Tizen3.0 platform.

Reviewers: jypark, wonsik, dkdk, scholb.kim, jiin.moon, jpeg, cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4711

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agogenlist: Fix another issue with insert sorted
Jean-Philippe Andre [Mon, 20 Mar 2017 13:24:41 +0000 (22:24 +0900)]
genlist: Fix another issue with insert sorted

Fixes T5274

@fix

7 years agoevas gl: Fix a compilation warning
Jean-Philippe Andre [Mon, 20 Mar 2017 03:51:16 +0000 (12:51 +0900)]
evas gl: Fix a compilation warning

The fallback lib handle is not required unless EGL/GLES is used.

7 years agoeina_debug: do not leak a spinlock when the path is not given
Marcel Hollerbach [Sat, 18 Mar 2017 21:06:30 +0000 (22:06 +0100)]
eina_debug: do not leak a spinlock when the path is not given

7 years agogl_drm: Fix KHR partial update support
Derek Foreman [Fri, 17 Mar 2017 20:32:26 +0000 (15:32 -0500)]
gl_drm: Fix KHR partial update support

I fixed this in other engines but missed this one.  The result is some
terrible flickering on gl_drm on recent mali drivers.

7 years agoecore_drm2: Move function call after the NULL check
Derek Foreman [Fri, 17 Mar 2017 20:06:39 +0000 (15:06 -0500)]
ecore_drm2: Move function call after the NULL check

Was dereferencing ob before NULL checking it.  What could possibly go
wrong?

7 years agogl_drm: Properly disable EGL_EXT_buffer_age when we don't have it
Derek Foreman [Fri, 17 Mar 2017 20:04:47 +0000 (15:04 -0500)]
gl_drm: Properly disable EGL_EXT_buffer_age when we don't have it

If we don't have EGL_EXT_buffer_age then we don't have buffer age - it's
a completely independent extension to KHR partial update.

This partially fixes partial update on recent mali drivers.

7 years agotheme: remove event gaps in enlightenment window frames
Mike Blumenkrantz [Fri, 17 Mar 2017 17:16:53 +0000 (13:16 -0400)]
theme: remove event gaps in enlightenment window frames

@fix

7 years agoefreet: CRI and fail after 10 attempts to connect to efreetd
Mike Blumenkrantz [Fri, 17 Mar 2017 17:16:53 +0000 (13:16 -0400)]
efreet: CRI and fail after 10 attempts to connect to efreetd

if efreetd cannot be connected to, stop infinitely trying to spawn it
since this generates crazy cpu load

probably this path should also send some cache events so that watchers
do not simply idle forever

ref T5200

7 years agoecore-evas: handle title_set and name_class_set for buffer engine
Mike Blumenkrantz [Fri, 17 Mar 2017 17:16:53 +0000 (13:16 -0400)]
ecore-evas: handle title_set and name_class_set for buffer engine

7 years agotheme: make bryce vertical clipping work as expected
Mike Blumenkrantz [Fri, 17 Mar 2017 17:16:53 +0000 (13:16 -0400)]
theme: make bryce vertical clipping work as expected

ref a94351a789ae7c11efb72c1b9f35cd7fae4d7fa2

7 years agoevas table: CRI when attempting to pack a table child into another table
Mike Blumenkrantz [Fri, 17 Mar 2017 17:16:53 +0000 (13:16 -0400)]
evas table: CRI when attempting to pack a table child into another table

@fix

7 years agoelm_code: Update and demo status messages inline
Andy Williams [Fri, 17 Mar 2017 10:07:04 +0000 (10:07 +0000)]
elm_code: Update and demo status messages inline

7 years agoelementary: enhance atspi accessible documentation
Shinwoo Kim [Fri, 17 Mar 2017 07:52:16 +0000 (16:52 +0900)]
elementary: enhance atspi accessible documentation

7 years agogengrid: avoid call select callback twice in mode ELM_OBJECT_MULTI_SELECT_MODE_WITH_C...
Vyacheslav Reutskiy [Fri, 17 Mar 2017 06:59:26 +0000 (08:59 +0200)]
gengrid: avoid call select callback twice in mode ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL

If multi select mode is ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL and
user code try unselect a item and select another part which not
realized select callback calls twice in this case. For avoid this no
needs focus newly selected item.

@fix

7 years agoluncher: improving engage animations
Andy Williams [Thu, 16 Mar 2017 22:57:03 +0000 (22:57 +0000)]
luncher: improving engage animations

7 years agoeina_file: fixed T2244
Ivan Furs [Wed, 15 Mar 2017 17:49:19 +0000 (10:49 -0700)]
eina_file: fixed T2244

Summary:
dirty fix for 'eet' problems with file deletion on WINDOWS
to work with the commit: D4698, D4699

Reviewers: cedric, NikaWhite, rimmed, vtorri, raster

Reviewed By: cedric

Subscribers: artem.popov, cedric, jpeg

Maniphest Tasks: T2244

Differential Revision: https://phab.enlightenment.org/D4701

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoevas: drop redundant pointer check
Bryce Harrington [Wed, 15 Mar 2017 17:40:01 +0000 (10:40 -0700)]
evas: drop redundant pointer check

Summary:
The function already has a precondition test for !font, so this
additional test will never trigger.

@fix CID1371525

Reviewers: cedric, jpeg

Subscribers: jpeg, cedric

Differential Revision: https://phab.enlightenment.org/D4682

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoelementary: Fix minor typo in efl_ui_win.eo
Chris Michael [Tue, 14 Mar 2017 14:51:01 +0000 (10:51 -0400)]
elementary: Fix minor typo in efl_ui_win.eo

Small patch to fix a minor typo in the "noblank" property of
efl_ui_win.eo

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agogenlist: Fix a leak
Jean-Philippe Andre [Tue, 14 Mar 2017 14:07:34 +0000 (23:07 +0900)]
genlist: Fix a leak

Thanks @herdsman

7 years agoecore: Fix memory leak and logic
Jean-Philippe Andre [Tue, 14 Mar 2017 13:28:50 +0000 (22:28 +0900)]
ecore: Fix memory leak and logic

@cedric... how could this even happen??

7 years agorelease: Update NEWS and bump version for 1.19.0-beta3 release
Stefan Schmidt [Tue, 14 Mar 2017 09:58:39 +0000 (10:58 +0100)]
release: Update NEWS and bump version for 1.19.0-beta3 release

7 years agoecore_animator: improve comparision check for stopping animator.
Umesh Tanwar [Tue, 14 Mar 2017 08:54:16 +0000 (14:24 +0530)]
ecore_animator: improve comparision check for stopping animator.

Summary:
Time cmparision does not ensure the corrctness of posotion.
It is beacuse of double number calculation. Double number calculation
are not convertable.for example:
   1/39 = 0.02564102564;
   but 0.02564102564 * 39 = 0.99999999996 != 1;

The addition check for pos ensure the pos to be reached at its correct
position.

@fix

Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>
Reviewers: cedric, singh.amitesh, jpeg, raster

Reviewed By: raster

Subscribers: atulfokk, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4709

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoevas gl: Add a hack for GLES 3.1 with NVIDIA + GLVND
Jean-Philippe Andre [Tue, 14 Mar 2017 07:49:01 +0000 (16:49 +0900)]
evas gl: Add a hack for GLES 3.1 with NVIDIA + GLVND

I believe there's a limitation in libglvnd where it doesn't
propagate the calls to eglGetProcAddress() properly to the vendor
library.

See also 265c851a8f2ac3cd1f93d523736d4cce0454fe2c

7 years agoevas: Fix crash with events on the canvas
Jean-Philippe Andre [Tue, 14 Mar 2017 06:30:40 +0000 (15:30 +0900)]
evas: Fix crash with events on the canvas

Since ecore now uses efl events to feed input events to the
canvas, anyone can now listen to any event on the evas. But
when using the legacy API the event info needs to be the legacy
struct, and not the eo event info otherwise crashes will happen.

While this is a new use of events, I consider it valid and it's
better to fix it rather than disallowing it. Fixed by wrapping
evas events the same way evas object events were handled.

Fixes T5266

7 years agoevas gl: Fix usage of OSMesa
Jean-Philippe Andre [Tue, 14 Mar 2017 05:45:50 +0000 (14:45 +0900)]
evas gl: Fix usage of OSMesa

It seems OSMesa was recently updated to not expose symbols statically,
so dlsym() returns invariably NULL. GetProcAddress must be used. Note
though that the extension "EGL_KHR_get_all_proc_addresses" is not
present (OSMesa is OpenGL, not GLES), and there is anyway no list
of extensions in OSMesa (at the WSI level, glGetString() returns a
ton of GL extensions as expected).

My OSMesa version is 11.2.0 (mesa 17.0.1).

This fixes make check.

@fix

7 years agoedje: Move prev_description out of ephysics ifdef
Jean-Philippe Andre [Tue, 14 Mar 2017 05:06:24 +0000 (14:06 +0900)]
edje: Move prev_description out of ephysics ifdef

prev_description was used when HAVE_EPHYSICS is set, which is the
default, but I also added a use in 7072fbc2bfe25881 where the map
was not properly reset.

This removes an ugly #ifdef and opens the door to other fixes
similar to that map one.

7 years agogenlist: Fix some more decorate mode issues
Jean-Philippe Andre [Mon, 13 Mar 2017 15:26:50 +0000 (00:26 +0900)]
genlist: Fix some more decorate mode issues

The item, after having been unswallowed from its decorate
item, becomes unclipped and unparented. The parent was well
reset, but the clip wasn't.

Test case:
  elementary_test -to "Genlist Decorate Item Mode"

I'm sure some bugs are still lurking. Genlist is so lovely.

Fixes T1551

7 years agoedje: Fix rare issue with map
Jean-Philippe Andre [Mon, 13 Mar 2017 14:34:22 +0000 (23:34 +0900)]
edje: Fix rare issue with map

In the following sequence, the swallowed object map property is
never reset as it should have been:

- swallow object
- start program, change state to have a map
- do something
- start program, change state to have no map
    but before render, unswallow the object

At this point, the object will never be un-mapped. This is weird.
Somehow edje_calc avoids calling evas_object_map_[enable_]_set
excessively, but I believe the issue is that the object does not
need recalc. Its container needed recalc, not the child (which is
mapped). I'm not 100% sure.

Test case:
  elementary_test -to "Genlist Decorate Item Mode"
  Click on rotate, select a few items, scroll up and down. Enjoy.

Ref T1551

@fix

7 years agogenlist: Make sure only one item is decorated
Jean-Philippe Andre [Mon, 13 Mar 2017 11:48:31 +0000 (20:48 +0900)]
genlist: Make sure only one item is decorated

In "Genlist Decorate Item Mode" after decorating a few items
(rotate or slide, doesn't matter), only one item or none should
be decorated. Scrolling up and down the genlist should work just
fine. This fixes massive render issues and inconsistent states
of the items in this test case.

"rotate" mode is still going nuts.

Ref T1551

7 years agogenlist: Make logic more readable
Jean-Philippe Andre [Mon, 13 Mar 2017 11:46:56 +0000 (20:46 +0900)]
genlist: Make logic more readable

7 years agogenlist: Fix invalid call to stack above/below
Jean-Philippe Andre [Mon, 13 Mar 2017 11:18:33 +0000 (20:18 +0900)]
genlist: Fix invalid call to stack above/below

Test process:
  elementary_test -to "Genlist Decorate Item Mode"

Slide any item to the right, observe error logs.

Ref T1551

7 years agoevas: Add more debug info to an ERR message (stack)
Jean-Philippe Andre [Mon, 13 Mar 2017 10:18:02 +0000 (19:18 +0900)]
evas: Add more debug info to an ERR message (stack)

Also use eina_safety as those are safety checks. Helps with GDB
(single breakpoint in eina_safety).

7 years agoRevert "ecore-evas reduce modifier modification on every event to cut cpu"
Cedric BAIL [Mon, 13 Mar 2017 18:11:44 +0000 (11:11 -0700)]
Revert "ecore-evas reduce modifier modification on every event to cut cpu"

This reverts commit 3a9d54085b8751cbd0bca4698a8ff702d9bdc7b4.

I got crash and a lot of valgrind warning with this patch. All in all, I
think we can just wait for next release and do a proper cleanup of our API
to not rely on strings at all.

For references this is the first valgrind warning I get (Not going to past the 100 following one) :

==11860== Invalid write of size 4
==11860==    at 0xB10DDD1: _ecore_event_evas_modifier_lock_update (ecore_input_evas.c:432)
==11860==    by 0xB10E3DD: ecore_event_evas_mouse_move (ecore_input_evas.c:725)
==11860==    by 0x5D5115D: _ecore_call_handler_cb (ecore_private.h:317)
==11860==    by 0x5D5115D: _ecore_event_call (ecore_events.c:518)
==11860==    by 0x5D5CC47: _ecore_main_loop_iterate_internal (ecore_main.c:2381)
==11860==    by 0x5D5D42E: ecore_main_loop_begin (ecore_main.c:1289)
==11860==    by 0x5D5D490: _efl_loop_begin (ecore_main.c:2831)
==11860==    by 0x5D59555: efl_loop_begin (efl_loop.eo.c:32)
==11860==    by 0x14F275: main (test.c:1188)
==11860==  Address 0x19a36828 is 7 bytes after a block of size 1 alloc'd
==11860==    at 0x4C2AACE: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11860==    by 0x4C2CC81: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==11860==    by 0xB10DDA8: _ecore_event_evas_modifier_lock_update (ecore_input_evas.c:425)
==11860==    by 0xB10E3DD: ecore_event_evas_mouse_move (ecore_input_evas.c:725)
==11860==    by 0x5D5115D: _ecore_call_handler_cb (ecore_private.h:317)
==11860==    by 0x5D5115D: _ecore_event_call (ecore_events.c:518)
==11860==    by 0x5D5CC47: _ecore_main_loop_iterate_internal (ecore_main.c:2381)
==11860==    by 0x5D5D42E: ecore_main_loop_begin (ecore_main.c:1289)
==11860==    by 0x5D5D490: _efl_loop_begin (ecore_main.c:2831)
==11860==    by 0x5D59555: efl_loop_begin (efl_loop.eo.c:32)
==11860==    by 0x14F275: main (test.c:1188)

7 years agoeina: Fix more typo in doxygen
Chris Michael [Mon, 13 Mar 2017 19:50:37 +0000 (15:50 -0400)]
eina: Fix more typo in doxygen

The eina_(rw)_slice_startswith functions both incorrectly describe how
the 'prefix' parameter is used, so fix those also

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoeina: Fix typo in doxygen
Chris Michael [Mon, 13 Mar 2017 16:11:46 +0000 (12:11 -0400)]
eina: Fix typo in doxygen

eina_(rw)_slice_startswith functions both incorrectly describe the
return value as 'slice ends with', when clearly the function is used
to find if a slice 'starts with' a prefix

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-evas reduce modifier modification on every event to cut cpu
Carsten Haitzler (Rasterman) [Mon, 13 Mar 2017 08:37:32 +0000 (17:37 +0900)]
ecore-evas reduce modifier modification on every event to cut cpu

this only modifiers modifiers if the modifier mask changed. it stores
it per seat and matches up before deciding to actually modifier the
modifiers. this SHOULD fix T5252

@fix

7 years agoelementary: refactor code to avoid duplication in elm_code_widget.
Cedric Bail [Sun, 12 Mar 2017 22:36:17 +0000 (15:36 -0700)]
elementary: refactor code to avoid duplication in elm_code_widget.

7 years agoecore_evas: keep VNC API BETA until multi evas output is in, just in case.
Cedric Bail [Sun, 12 Mar 2017 18:17:43 +0000 (11:17 -0700)]
ecore_evas: keep VNC API BETA until multi evas output is in, just in case.

7 years agoelm_code: Don't leak rows when we resize down
Andy Williams [Sun, 12 Mar 2017 13:35:41 +0000 (13:35 +0000)]
elm_code: Don't leak rows when we resize down

Thanks Cedric :)
@fix

7 years agoelementary: force elm_code line fill on object resize.
Cedric Bail [Sun, 12 Mar 2017 00:52:04 +0000 (16:52 -0800)]
elementary: force elm_code line fill on object resize.

This fix elementary_test use of elm_code where the object needed
to get clicked to have their content displayed. The reason was that
the line where appended while the object size was 0 and once it was
resized the line where not displayed.

7 years agoluncher: Smoothing engage theme
Andy Williams [Sat, 11 Mar 2017 23:11:10 +0000 (23:11 +0000)]
luncher: Smoothing engage theme

7 years agoedje/examples: don't alter source directory
Jean Guyomarc'h [Fri, 10 Mar 2017 23:02:41 +0000 (00:02 +0100)]
edje/examples: don't alter source directory

We would have removed files from the source directory before... oops...

7 years agoelementary: fix elm_code widget tests by actually setting a font.
Cedric BAIL [Fri, 10 Mar 2017 23:00:23 +0000 (15:00 -0800)]
elementary: fix elm_code widget tests by actually setting a font.

7 years agoluncher: Update theme to ensure we're sending scale reset signls
Andy Williams [Fri, 10 Mar 2017 22:14:29 +0000 (22:14 +0000)]
luncher: Update theme to ensure we're sending scale reset signls

7 years agoecore-evas-wayland: update no-op configure commit case for new acking method
Mike Blumenkrantz [Fri, 10 Mar 2017 21:11:19 +0000 (16:11 -0500)]
ecore-evas-wayland: update no-op configure commit case for new acking method

ref 1b9970658f17d6b130a24cf9a960e1a43b696160
ref 5e7456a3150ddaed135f702c70800c7ed3d4f16f

7 years agoRevert "evas_table: abort when there is already the option struct"
Mike Blumenkrantz [Fri, 10 Mar 2017 20:54:34 +0000 (15:54 -0500)]
Revert "evas_table: abort when there is already the option struct"

This reverts commit 008711b3b0f0b33e47e6b2fae7f925a0a9fb76ee.

this breaks elm_table_pack_set() as well as other valid usage and is
not a valid change to the code

7 years agoecore-evas-x: set flag for maximized state
Mike Blumenkrantz [Fri, 10 Mar 2017 20:54:34 +0000 (15:54 -0500)]
ecore-evas-x: set flag for maximized state

fixes initial maximize state

7 years agoecore-evas-wayland: commit on no-op configure events
Mike Blumenkrantz [Fri, 10 Mar 2017 20:54:34 +0000 (15:54 -0500)]
ecore-evas-wayland: commit on no-op configure events

this handles the case of a window configure not triggering any visible change

fix T5192

7 years agoelm_code: Fix position of cursor in selection
Andy Williams [Tue, 7 Mar 2017 15:46:41 +0000 (15:46 +0000)]
elm_code: Fix position of cursor in selection

Make sure cursor is always at the left of our selection
@fix

7 years agoGengrid: Correct double comparision.
Umesh Tanwar [Fri, 10 Mar 2017 06:29:52 +0000 (11:59 +0530)]
Gengrid: Correct double comparision.

Summary:
 Use the more accurate EINA_DBL_EQ for double comparision.

@fix

Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>
Reviewers: singh.amitesh, cedric, jpeg, raster

Reviewed By: singh.amitesh

Subscribers: atulfokk, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4706

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoecore_animator: use EINA_DBL_EQ for comparing double values
Umesh Tanwar [Fri, 10 Mar 2017 06:19:16 +0000 (11:49 +0530)]
ecore_animator: use EINA_DBL_EQ for comparing double values

Summary:
EINA_FLT_EQ was used to compare double values. replace it with EINA_DBL_EQ

@fix
Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>
Reviewers: raster, cedric, singh.amitesh

Reviewed By: singh.amitesh

Subscribers: atulfokk

Differential Revision: https://phab.enlightenment.org/D4712

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoRevert "Genlist: Calculate the min size of content before item realize"
Jean-Philippe Andre [Fri, 10 Mar 2017 06:18:57 +0000 (15:18 +0900)]
Revert "Genlist: Calculate the min size of content before item realize"

This reverts commit 60566ca34d0036d21e5d134ba299b6f0fa26ce86.

This broke the layout in "Genlist Full Widget"

7 years agoGenlist: Calculate the min size of content before item realize
Jeeyong Um [Fri, 10 Mar 2017 05:59:47 +0000 (14:59 +0900)]
Genlist: Calculate the min size of content before item realize

Summary:
Genlist item doesn't change its size when its content size is changed,
but its size is determined in realization.
Therefore, deferred calculations for content should be performed immediately
before swallowing it by genlist item.

Test Plan: make and run attached sample

Reviewers: cedric, SanghyeonLee, jpeg

Reviewed By: jpeg

Differential Revision: https://phab.enlightenment.org/D4705

7 years agogenlist: Fix invalid state of reused content
Jean-Philippe Andre [Fri, 10 Mar 2017 02:17:16 +0000 (11:17 +0900)]
genlist: Fix invalid state of reused content

If an item is marked as disabled it should be re-enabled
before being put in the reusable contents cache. Otherwise
a following use of this object may result in a disabled
item being used, making the UI effectively disfunctional.

Also modify the test case to show and test this behaviour.

Add an efl_isa() to protect calls to elm_widget APIs.

Fixes T5236

@fix

7 years agoevas - gl - remove warning for unused var with opengl vs gles
Carsten Haitzler (Rasterman) [Fri, 10 Mar 2017 01:56:19 +0000 (10:56 +0900)]
evas - gl - remove warning for unused var with opengl vs gles

7 years agoemotion: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:17:45 +0000 (16:17 -0800)]
emotion: avoid crash during shutdown due to Ecore_Event queue.

7 years agoelocation: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:17:24 +0000 (16:17 -0800)]
elocation: avoid crash during shutdown due to Ecore_Event queue.

7 years agoelput: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:17:10 +0000 (16:17 -0800)]
elput: avoid crash during shutdown due to Ecore_Event queue.

7 years agoelementary: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:16:56 +0000 (16:16 -0800)]
elementary: avoid crash during shutdown due to Ecore_Event queue.

7 years agoeio: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:16:45 +0000 (16:16 -0800)]
eio: avoid crash during shutdown due to Ecore_Event queue.

7 years agoefreet: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:16:28 +0000 (16:16 -0800)]
efreet: avoid crash during shutdown due to Ecore_Event queue.

7 years agoeeze: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:15:54 +0000 (16:15 -0800)]
eeze: avoid crash during shutdown due to Ecore_Event queue.

7 years agoecore_x: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:15:04 +0000 (16:15 -0800)]
ecore_x: avoid crash during shutdown due to Ecore_Event queue.

7 years agoecore_wl2: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:14:35 +0000 (16:14 -0800)]
ecore_wl2: avoid crash during shutdown due to Ecore_Event queue.

7 years agoecore_win32: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:14:22 +0000 (16:14 -0800)]
ecore_win32: avoid crash during shutdown due to Ecore_Event queue.

7 years agoecore_wayland: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:13:56 +0000 (16:13 -0800)]
ecore_wayland: avoid crash during shutdown due to Ecore_Event queue.

7 years agoecore_sdl: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:13:43 +0000 (16:13 -0800)]
ecore_sdl: avoid crash during shutdown due to Ecore_Event queue.

7 years agoecore_psl1ght: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:13:13 +0000 (16:13 -0800)]
ecore_psl1ght: avoid crash during shutdown due to Ecore_Event queue.

7 years agoecore_ipc: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:11:50 +0000 (16:11 -0800)]
ecore_ipc: avoid crash during shutdown due to Ecore_Event queue.

7 years agoecore_input: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:11:34 +0000 (16:11 -0800)]
ecore_input: avoid crash during shutdown due to Ecore_Event queue.

7 years agoecore_imf: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:11:19 +0000 (16:11 -0800)]
ecore_imf: avoid crash during shutdown due to Ecore_Event queue.

7 years agoecore_evas: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:11:07 +0000 (16:11 -0800)]
ecore_evas: avoid crash during shutdown due to Ecore_Event queue.

7 years agoecore_drm: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:10:49 +0000 (16:10 -0800)]
ecore_drm: avoid crash during shutdown due to Ecore_Event queue.

7 years agoecore_cocoa: avoid crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:10:22 +0000 (16:10 -0800)]
ecore_cocoa: avoid crash during shutdown due to Ecore_Event queue.

7 years agoecore_con: avoid potential crash during shutdown due to Ecore_Event queue.
Cedric BAIL [Fri, 10 Mar 2017 00:10:00 +0000 (16:10 -0800)]
ecore_con: avoid potential crash during shutdown due to Ecore_Event queue.

7 years agoecore: avoid potential crash on shutdown in Ecore_Exe
Cedric BAIL [Fri, 10 Mar 2017 00:08:59 +0000 (16:08 -0800)]
ecore: avoid potential crash on shutdown in Ecore_Exe

7 years agoecore: add ecore_event_type_flush.
Cedric BAIL [Thu, 9 Mar 2017 23:51:00 +0000 (15:51 -0800)]
ecore: add ecore_event_type_flush.

During shutdown it is possible that some event are still in ecore events
queue and get processed after the shutdown of the module that did emit them.
This would lead to crash in some case. The answer to this problem is to
normally manually track all ecore event in the queue and destroy them
before shutdown... Of course that make the API difficult to use and
basically nobody got it right.

This new API do actually as it says remove all the ecore event of a
certain type from ecore events queue. It is to be called on shutdown.

@fix

7 years agoecore_cocoa: fix windows initial rendering
Jean Guyomarc'h [Thu, 9 Mar 2017 22:04:26 +0000 (23:04 +0100)]
ecore_cocoa: fix windows initial rendering

We need to refresh the Cocoa's content view when showing the window.
In some particular cases (including the elementary_test initial window),
the content view is redrawn because of external events (the entry
animator). When no action at all is performed, the window and the
content view are resized... nice... but not drew...

Such a simple fix for this hell of a bug!

Fixes T5210

7 years agoecore_evas_cocoa: better debugging log
Jean Guyomarc'h [Thu, 9 Mar 2017 21:58:50 +0000 (22:58 +0100)]
ecore_evas_cocoa: better debugging log

7 years agoecore_cocoa: factorize a little access to the cocoa window
Jean Guyomarc'h [Thu, 9 Mar 2017 21:56:47 +0000 (22:56 +0100)]
ecore_cocoa: factorize a little access to the cocoa window

7 years agoeldbus: don't abs() an unsigned value
Jean Guyomarc'h [Thu, 9 Mar 2017 21:19:03 +0000 (22:19 +0100)]
eldbus: don't abs() an unsigned value

clang complained about abs() being used on an unsigned integer.
Calling abs() is actually unnecessary.

7 years agoeio: fix printf format error
Jean Guyomarc'h [Thu, 9 Mar 2017 21:18:10 +0000 (22:18 +0100)]
eio: fix printf format error

7 years agoedje: better error message when a po file does not exist
Jean Guyomarc'h [Thu, 9 Mar 2017 21:17:43 +0000 (22:17 +0100)]
edje: better error message when a po file does not exist

7 years agoedje: make sure the po files are well-copied once
Jean Guyomarc'h [Thu, 9 Mar 2017 21:17:11 +0000 (22:17 +0100)]
edje: make sure the po files are well-copied once

7 years agoedje: use portable cp options
Jean Guyomarc'h [Thu, 9 Mar 2017 20:30:26 +0000 (21:30 +0100)]
edje: use portable cp options

The -u option is GNU-specific.

7 years agoecore_wl2: Fix up xdgv6 ack_configures
Derek Foreman [Thu, 9 Mar 2017 22:11:56 +0000 (16:11 -0600)]
ecore_wl2: Fix up xdgv6 ack_configures

We've been immediately acking configure with the correct serial number, then
later at commit time sending an incorrect serial (generating a new one).

Remove the extra ack, and save that serial for later, and don't overwrite
it with a current serial when we get a toplevel configure.

Oddly, compositors were letting us get away with this behaviour, so this
probably looks functionally the same as before.

7 years agoecore_wl2: Fix initial maximized/fullscreen state
Derek Foreman [Wed, 8 Mar 2017 20:10:10 +0000 (14:10 -0600)]
ecore_wl2: Fix initial maximized/fullscreen state

This defers the fullscreen/maximized states if we don't have a shell
surface, and sets them in the first shell surface commit.

ref T5044

7 years agoecore_wl2: Rename badly named API
Derek Foreman [Thu, 9 Mar 2017 17:05:28 +0000 (11:05 -0600)]
ecore_wl2: Rename badly named API

Oops, I broke naming convention with this, but it's unreleased and beta so
I hope nobody notices as long as I change it now...

7 years agoecore_wl2: Remove wl_shell client support
Derek Foreman [Wed, 8 Mar 2017 19:40:41 +0000 (13:40 -0600)]
ecore_wl2: Remove wl_shell client support

We're never going to encounter a compositor without at least xdg v5
support, so remove wl_shell support.

7 years agoRevert "ecore-evas-wayland: Fix issue of apps not starting up in fullscreen mode"
Derek Foreman [Wed, 8 Mar 2017 18:45:07 +0000 (12:45 -0600)]
Revert "ecore-evas-wayland: Fix issue of apps not starting up in fullscreen mode"

This reverts commit dfb18775002c5130b60bdc03ed60b7de356e6012.

This did fix the problem of "rage -f" not starting properly, but it
broke toggling between fullscreen and !fullscreen for other apps.

They'd resize to a large, but not quite fullscreen, size, then render with decor
present, and big black bars on the right/bottom edges (which were offscreen due
to the client size and position)

This isn't really the right place to fix this - it's a protocol usage bug, not
a canvas bug.

7 years agoecore-anim: Remove unused variable
Chris Michael [Thu, 9 Mar 2017 13:51:18 +0000 (08:51 -0500)]
ecore-anim: Remove unused variable

Gcc reports 'i' as unused here and checking the code confirms that, so
remove unused variable.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoRevert "ecore_input - dont try update modifiers and locks on mouse events"
Derek Foreman [Thu, 9 Mar 2017 13:42:28 +0000 (07:42 -0600)]
Revert "ecore_input - dont try update modifiers and locks on mouse events"

This reverts commit f654714d75afdd07ad851bf278a39ddf8de6caba.

Modifiers do influence mouse events, though a mouse input can't change them...

This commit broke modifer+drag on windows in E, so I'm reverting it.

7 years agoevas filters: Save selected render op of the final object
Jean-Philippe Andre [Thu, 9 Mar 2017 08:36:39 +0000 (17:36 +0900)]
evas filters: Save selected render op of the final object

If an object is meant to use COPY mode (for evil purposes,
most likely), then its filtered output should also be using
COPY mode.

@fix

7 years agowin32: removed duplicate winsock2.h and added WIN32_LEAN_AND_MEAN in Ecore.h
Ivan Furs [Thu, 9 Mar 2017 07:39:42 +0000 (16:39 +0900)]
win32: removed duplicate winsock2.h and added WIN32_LEAN_AND_MEAN in Ecore.h

Summary: winsock2.h is dublicate in src/lib/ecore/ecore_main.c

Reviewers: NikaWhite, an.kroitor, cedric, raster, rimmed, vtorri

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4688

7 years agopopup: hides the popup when hide effect is finished
Taehyub Kim [Thu, 9 Mar 2017 07:36:20 +0000 (16:36 +0900)]
popup: hides the popup when hide effect is finished

Summary:
When popup hides and shows fast, sometimes popup is not shown
because of the difference visible value between popup and notify
(case: popup visible state: 1, popup_notify visible state: 0)
To sync this value I added the visible set code in elc_popup.c

@fix

Test Plan:
1. run elementary_text -to popup
2. shows the hide popup
3. hides popup using the hide button
4. repeat 2,3 step
5. popup will be shown well

Reviewers: jpeg, cedric, Hermet, raster

Subscribers: Blackmole, woohyun

Differential Revision: https://phab.enlightenment.org/D4710

7 years agoecore_input - dont try update modifiers and locks on mouse events
Carsten Haitzler (Rasterman) [Thu, 9 Mar 2017 07:52:44 +0000 (16:52 +0900)]
ecore_input - dont try update modifiers and locks on mouse events

mouse events have nothing to do with modifiers or locks, so dont try
modify them on mouse events. a total waste of cpu and time.

this should also fix T5251

7 years agomultibuttonentry : fix box indicated item correctly in item_insert_before and item_in...
JEONGHYUN YUN [Thu, 9 Mar 2017 07:11:33 +0000 (16:11 +0900)]
multibuttonentry : fix box indicated item correctly in item_insert_before and item_insert_after

Summary:
If user added item with item_insert_before and item_insert_after, item was not displayed.
For this reason, fixed box indicated item correctly from reference->button to VIEW(reference).
Additionally, remove the unused variable button in _Multibuttonentry_Item struct.

Reviewers: woohyun, CHAN, cedric, jpeg

Reviewed By: CHAN

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4708