platform/upstream/efl.git
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

7 years agoevas: Check for null pointer deref
Bryce Harrington [Thu, 9 Mar 2017 06:45:03 +0000 (15:45 +0900)]
evas: Check for null pointer deref

Summary:
Earlier places in the function are testing if obj->layer is null, so
should be checked here as well before it's used.

@fix CID1371826

Reviewers: jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

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

7 years agoevas image cache - add lots more locking to try stamp out any thread bug
Carsten Haitzler (Rasterman) [Thu, 9 Mar 2017 02:18:32 +0000 (11:18 +0900)]
evas image cache - add lots more locking to try stamp out any thread bug

this definitely fixes T5223 because it adds an engine lock around the
code segemtnt that does compare time stamps... and hopefulyl a few
more things too.

@fix

7 years agoLuncher theme: Prepare to size engage correctly.
Stephen 'Okra' Houston [Thu, 9 Mar 2017 00:20:10 +0000 (18:20 -0600)]
Luncher theme: Prepare to size engage correctly.

7 years agogl_cocoa: use triple buffering
Jean Guyomarc'h [Wed, 8 Mar 2017 23:31:51 +0000 (00:31 +0100)]
gl_cocoa: use triple buffering

Interestingly enough, this makes some graphical artifacts vanish...

7 years agoecore_evas_cocoa: fix invalid initial requested width
Jean Guyomarc'h [Wed, 8 Mar 2017 21:36:30 +0000 (22:36 +0100)]
ecore_evas_cocoa: fix invalid initial requested width

7 years agoecore_evas_cocoa: use ecore_event to match windows
Jean Guyomarc'h [Wed, 8 Mar 2017 21:09:37 +0000 (22:09 +0100)]
ecore_evas_cocoa: use ecore_event to match windows

7 years agoecore_cocoa: pass the right window to ecore_evas
Jean Guyomarc'h [Wed, 8 Mar 2017 21:06:35 +0000 (22:06 +0100)]
ecore_cocoa: pass the right window to ecore_evas

7 years agoecore_evas_cocoa: remove more pointless code
Jean Guyomarc'h [Wed, 8 Mar 2017 20:20:55 +0000 (21:20 +0100)]
ecore_evas_cocoa: remove more pointless code

7 years agoeina: force copy of not copied virtualized file while doing an eina_file_dup.
Cedric Bail [Wed, 8 Mar 2017 18:13:36 +0000 (10:13 -0800)]
eina: force copy of not copied virtualized file while doing an eina_file_dup.

The other way around is pretty much impossible as you don't know who does
an eina_file_dup and for how long they keep there reference.

T5234

7 years agoecore-wl2: Clarify post-condition for global lookup in _ecore_wl2_shell_bind
Bryce Harrington [Wed, 8 Mar 2017 20:13:01 +0000 (14:13 -0600)]
ecore-wl2: Clarify post-condition for global lookup in _ecore_wl2_shell_bind

Summary:
The !global test is a post-condition that _ecore_wl2_global_find
provided valid data, so the code is clearer if this is kept separate
from the subsequent if chain for looking up the shell.  Since this
post-condition returns from the function on error, it can stand alone.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewers: devilhorns, ManMower

Reviewed By: ManMower

Subscribers: jpeg, cedric

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

7 years agoevas: clean up GL images for emojis when GL context is free'd
Youngbok Shin [Wed, 8 Mar 2017 10:33:15 +0000 (19:33 +0900)]
evas: clean up GL images for emojis when GL context is free'd

If GL context is free'd before processing font shutdown,
textures for emoji glyph's GL images will be free'd without clean
up its GL images. It causes eina mempool infinite loop issue when
emoji's GL images are free'd in shutdown process.

So, the patch will make a list for emoji's GL images in context and
clean up them when the context is free'd. Just like font textures in
context.

@fix

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

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
7 years agoelm_test: Add a test case for Emojis
Jean-Philippe Andre [Wed, 8 Mar 2017 10:19:36 +0000 (19:19 +0900)]
elm_test: Add a test case for Emojis

Yay to full color characters. The list of selected emojis is
quite random. Some more could be added.

Just two remarks:
- Aren't they supposed to scale down?
- Why is my grinning face always ugly?

7 years agoevas gl: Add missing GLES 3.1 definitions
Jean-Philippe Andre [Wed, 8 Mar 2017 09:34:09 +0000 (18:34 +0900)]
evas gl: Add missing GLES 3.1 definitions

Evas_GL_API supports the GLES 3.1 functions but the required
macros were not present. Thanks Brokenshakles for the tip.

7 years agonaviframe: keep unfocusable state of item before finishing item push/pop
Youngbok Shin [Wed, 8 Mar 2017 05:15:56 +0000 (14:15 +0900)]
naviframe: keep unfocusable state of item before finishing item push/pop

If item pop was started without focus at a naviframe object
and the naviframe object got focus before finising item pop,
the naviframe object could give focus to its first object of prev item.
It could ruin focus orders and failed to restore previous focused
object in the item.
To keep consistency of focus policy, same logic will be applied to
item push scenario.
@fix

Change-Id: Ia74bdce3620bd59622ef32a0cedf5fbd84815400

7 years agoevas: Print CRI message in case of bad event usage
Jean-Philippe Andre [Wed, 8 Mar 2017 07:54:45 +0000 (16:54 +0900)]
evas: Print CRI message in case of bad event usage

This will abort E when using Bryce and EINA_LOG_ABORT is enabled
(it is enabled by default when running a non-release version of E).
That's on purpose, as that code needs fixing :)

Ref T3144

7 years agoecore_evas_cocoa: remove a lot of useless code
Jean Guyomarc'h [Wed, 8 Mar 2017 07:57:37 +0000 (08:57 +0100)]
ecore_evas_cocoa: remove a lot of useless code

I still don't know what's going on with the rendering problems, but
at least now  I have less dead code in my way...

7 years agoecore_evas_cocoa: set the render func at initialization
Jean Guyomarc'h [Tue, 7 Mar 2017 22:07:07 +0000 (23:07 +0100)]
ecore_evas_cocoa: set the render func at initialization

7 years agoecore_evas: process mouse move even when there is no cursor
Jean Guyomarc'h [Tue, 7 Mar 2017 21:16:24 +0000 (22:16 +0100)]
ecore_evas: process mouse move even when there is no cursor

7 years agotests: Don't print garbage
Jean-Philippe Andre [Wed, 8 Mar 2017 06:51:02 +0000 (15:51 +0900)]
tests: Don't print garbage

GLView tends to print some random garbage when using the
GLView Gears test. That's because we're allocating and printing
a 0 byte buffer. Don't do that.

7 years agoevas gl: Fix version detection for GLES 3.1
Jean-Philippe Andre [Wed, 8 Mar 2017 02:52:59 +0000 (11:52 +0900)]
evas gl: Fix version detection for GLES 3.1

It was assumed that GLES 3 would only work with EGL but in fact
OpenGL 4.3 & 4.5 are supersets of GLES 3.0 & 3.1 respectively. So
GLX should also support GLES 3.0 or GLES 3.1 for evas gl, if the
driver supports it, of course.

Of course while doing this patch things didn't go like they were
supposed to go. I'm currently using NVIDIA's proprietary driver,
that conveniently provides EGL with GLES 3.2. But wait, there's
a catch: GL_VERSION is "OpenGL ES 3.2 NVIDIA" except that none
of the functions of GLES 3.1 or GLES 3.2 are actually supported.
Those functions are only present in the GLX/OpenGL variant of the
driver. Thanks so much for making my life easier...

So yeah, this patch contains a hack for those invalid versions
of GLES 3.x. What was supposed to be a small fix became a huge
mess.

Also add a comment about the possibly invalid auto-upgrade from
GLES 2 to GLES 3.

This adds a test case in elm_test, but only to verify that
elm_glview_version_add(3) actually works. We need a proper GLES 3
test case, eventually (and 3.1, 3.2 of course).

7 years agoevas: Set thread name for preload
Jean-Philippe Andre [Tue, 7 Mar 2017 10:42:20 +0000 (19:42 +0900)]
evas: Set thread name for preload

This can be useful during debugging.

7 years agoecore_evas/x: don't mark as unused a used parameter
Jean Guyomarc'h [Tue, 7 Mar 2017 19:22:11 +0000 (20:22 +0100)]
ecore_evas/x: don't mark as unused a used parameter

7 years agoecore_evas/cocoa: fix cursor's visibility
Jean Guyomarc'h [Tue, 7 Mar 2017 19:19:53 +0000 (20:19 +0100)]
ecore_evas/cocoa: fix cursor's visibility

Fixes T5238

7 years agoecore: switch back to use ecore_thread_wait.
Cedric BAIL [Tue, 7 Mar 2017 19:04:42 +0000 (11:04 -0800)]
ecore: switch back to use ecore_thread_wait.

We need to make sure that we wait properly on the animator thread
otherwise we end up with the animator finish callback being called
later on during the shutdown process which means trouble.

7 years agodocgen: include C usage snippet on event pages
Daniel Kolesa [Tue, 7 Mar 2017 16:15:24 +0000 (17:15 +0100)]
docgen: include C usage snippet on event pages