platform/upstream/efl.git
9 years agoecore-drm: Handle various touch events
Chris Michael [Wed, 10 Dec 2014 14:45:29 +0000 (09:45 -0500)]
ecore-drm: Handle various touch events

Summary: This adds code to handle various touch events (up, down,
motion) so that touchscreen devices can work with ecore_drm.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Remove libinput log print callback
Chris Michael [Wed, 10 Dec 2014 14:44:38 +0000 (09:44 -0500)]
ecore-drm: Remove libinput log print callback

Summary: This was causing crashes in libinput when trying to print out
via eina_log. Disable/Remove it. Let libinput print it's own logs.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoelua: always install cmake stuff for elua, even when not being built
Daniel Kolesa [Wed, 10 Dec 2014 15:25:00 +0000 (15:25 +0000)]
elua: always install cmake stuff for elua, even when not being built

9 years agoecore_drm: Setup correct linker flags for usage with systemd-login
Stefan Schmidt [Wed, 10 Dec 2014 14:09:44 +0000 (15:09 +0100)]
ecore_drm: Setup correct linker flags for usage with systemd-login

After the introduction of the non-systemd launcher the linking with systemd
enabled failed for me.

lib/ecore_drm/.libs/libecore_drm.so: undefined reference to `sd_pid_get_session'

Better we make sure that we actually setup the linker flags for the systemd use
case as well.

9 years agomodules/tgv: Switch from obsolete LZ4_uncompress function to LZ4_decompress_fast
Stefan Schmidt [Wed, 10 Dec 2014 13:47:42 +0000 (14:47 +0100)]
modules/tgv: Switch from obsolete LZ4_uncompress function to LZ4_decompress_fast

The function is declared as obsolete and in some newer headers it is no
longer defined. The new function is the same besides the name change.

9 years agoconfigure: Fix typo in systemd-login check
Stefan Schmidt [Wed, 10 Dec 2014 13:43:19 +0000 (14:43 +0100)]
configure: Fix typo in systemd-login check

9 years agoeet: Switch from obsolete LZ4_uncompress function to LZ4_decompress_fast
Stefan Schmidt [Wed, 10 Dec 2014 13:34:42 +0000 (14:34 +0100)]
eet: Switch from obsolete LZ4_uncompress function to LZ4_decompress_fast

The function is declared as obsolete and in some newer headers it is no
longer defined. The new function is the same besides the name change.

9 years agoecore-drm: fix passing wrong argument to open().
Seunghun Lee [Wed, 10 Dec 2014 13:04:32 +0000 (08:04 -0500)]
ecore-drm: fix passing wrong argument to open().

Summary: remove unintended argument.

@fix

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

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

9 years agoecore-drm: restore VT to text mode when close tty.
Seunghun Lee [Wed, 10 Dec 2014 13:03:44 +0000 (08:03 -0500)]
ecore-drm: restore VT to text mode when close tty.

Summary: if ecore-drm failed to be run after changing tty mode, need to restore VT to text mode.

Test Plan:
- run enlightenment(drm backend) without systemd.
after changing tty graphics mode, if it's failed to be run by any reason,
you'll see black screen and coulnd't control session.

@fix

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

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

9 years agoecore-drm: cleanup data when failed to setup tty.
Seunghun Lee [Wed, 10 Dec 2014 13:02:45 +0000 (08:02 -0500)]
ecore-drm: cleanup data when failed to setup tty.

Summary: added code to free string of tty's name when failed to setup tty.

@fix

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

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

9 years agoecore_drm: Removed unused variables in ecore_drm_evdev
kabeer khan [Wed, 10 Dec 2014 13:01:19 +0000 (08:01 -0500)]
ecore_drm: Removed unused variables in ecore_drm_evdev

Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

@fix

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

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

9 years agoecore-drm: Added cleanup data code as a error handling of connect logind.
Seunghun Lee [Wed, 10 Dec 2014 13:00:17 +0000 (08:00 -0500)]
ecore-drm: Added cleanup data code as a error handling of connect logind.

Summary: need to clean also dbus, when failed open VT as a connection progress of logind.

@fix

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

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

9 years agoecore-drm: Fix formatting.
Chris Michael [Wed, 10 Dec 2014 12:59:10 +0000 (07:59 -0500)]
ecore-drm: Fix formatting.

Summary: No functional changes, just formatting fixes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoedge: fix memory leak and removed redundant return statement.
Srivardhan Hebbar [Wed, 10 Dec 2014 10:19:59 +0000 (11:19 +0100)]
edge: fix memory leak and removed redundant return statement.

Summary:
The name was freed after exit, so freeing it before and also freeing in a error case. There was a return statement after exit, thought it was redundant and removed.
@fix

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: devilhorns, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_audio: fix memory leak in ecore_audio_pulse.
kabeer khan [Wed, 10 Dec 2014 10:19:18 +0000 (11:19 +0100)]
ecore_audio: fix memory leak in ecore_audio_pulse.

Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

@fix

Reviewers: devilhorns, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: Edje_Edit - generate missed properties of 'text' block
Maksym Volodin [Wed, 10 Dec 2014 02:44:50 +0000 (03:44 +0100)]
edje: Edje_Edit - generate missed properties of 'text' block

Summary:
missed souce, text-source, repch, size_range, style are added.
TODO is added for filter property.

Reviewers: Hermet, raster, cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoEvas GL: Fix direct rendering with client-side rotation
Jean-Philippe Andre [Tue, 9 Dec 2014 12:36:45 +0000 (21:36 +0900)]
Evas GL: Fix direct rendering with client-side rotation

There was a problem when checking whether the current surface
is compatible with direct rendering. In case of client-side
rotation (it's a flag set on the surface by the app), a surface
can be directly rendered even if the rotation is not 0.

But, before this patch, it was assumed that the surface was
current. Which doesn't make sense because make_current is
called by the pixel callback, from the application, and this
happens *after* we check for direct rendering.

As a consequence, it was not possible to mix directly rendered
surfaces with FBO-based ones, and use client-side rotation.

This patch should solve that issue.

9 years agoevil: add getpwnam() function
Vincent Torri [Tue, 9 Dec 2014 19:35:15 +0000 (20:35 +0100)]
evil: add getpwnam() function

@feature

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecoreodrm - fix build if systemd is not enabled
Carsten Haitzler (Rasterman) [Tue, 9 Dec 2014 23:54:02 +0000 (08:54 +0900)]
ecoreodrm - fix build if systemd is not enabled

9 years agoecore-drm: Merge port to libinput
Chris Michael [Tue, 9 Dec 2014 20:16:27 +0000 (15:16 -0500)]
ecore-drm: Merge port to libinput

Merge branch 'devs/devilhorns/libinput'

Summary: These commits port the current ecore_drm input code to use
libinput for handling of devices, input events, etc

@feature

9 years agoecore-drm: Port ecore_drm to use libinput
Chris Michael [Tue, 9 Dec 2014 20:13:49 +0000 (15:13 -0500)]
ecore-drm: Port ecore_drm to use libinput

Summary: This ports the input code of ecore_drm to make use of
libinput for handling of devices, events, etc

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Fix ecore_drm_launcher_device_close to not cause segfaults
Chris Michael [Tue, 9 Dec 2014 20:12:36 +0000 (15:12 -0500)]
ecore-drm: Fix ecore_drm_launcher_device_close to not cause segfaults

Summary: We can only call _ecore_drm_logind_device_close if we have an
actual device string. It is possible that this Could get called with
NULL, and thus cause a crash.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Cleanup structures in private header
Chris Michael [Tue, 9 Dec 2014 20:11:46 +0000 (15:11 -0500)]
ecore-drm: Cleanup structures in private header

Summary: With the port to libinput, some fields in the input & evdev
structures are not needed anymore, so this commit cleans those up.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoeeze: Add API function for eeze_udev_find_by_subsystem_sysname
Chris Michael [Tue, 9 Dec 2014 20:10:43 +0000 (15:10 -0500)]
eeze: Add API function for eeze_udev_find_by_subsystem_sysname

Summary: This adds an API function to find a device by
subsystem_sysname. This is needed for the port of ecore_drm to use
libinput.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoeeze: Add API function declaration for find_by_subsystem_sysname
Chris Michael [Tue, 9 Dec 2014 20:09:25 +0000 (15:09 -0500)]
eeze: Add API function declaration for find_by_subsystem_sysname

Summary: This adds an API function declaration for
eeze_udev_find_by_subsystem_sysname function which is needed for the
porting of ecore_drm to use libinput

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Include libinput header in drm private header
Chris Michael [Tue, 9 Dec 2014 15:00:29 +0000 (10:00 -0500)]
ecore-drm: Include libinput header in drm private header

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Add libinput dependency check
Chris Michael [Tue, 9 Dec 2014 14:58:27 +0000 (09:58 -0500)]
ecore-drm: Add libinput dependency check

Summary: ecore-drm will now require libinput for handling input
devices, so this commit adds a configure check for libinput

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Fix formatting
Chris Michael [Tue, 9 Dec 2014 14:52:24 +0000 (09:52 -0500)]
ecore-drm: Fix formatting

Summary: No functional changes, just fixing formatting

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Fix error message typo
Chris Michael [Tue, 9 Dec 2014 14:50:59 +0000 (09:50 -0500)]
ecore-drm: Fix error message typo

Summary: This just fixes a typo in the error message string

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: added drm launcher that is allow to determine whether to launch with login...
Seunghun Lee [Tue, 9 Dec 2014 14:36:42 +0000 (09:36 -0500)]
ecore-drm: added drm launcher that is allow to determine whether to launch with logind or root privilege.

Summary:
- allow to launch drm backend without systemd-logind with root privilege.
- allow to open drm device node via logind, not directly open it, in case exist systemd-logind.
- fixes issue that couldn't switch session, because ecore-drm couldn't drop master to drm device with no permission. (allow to switch session appropriate.)

Reviewers: gwanglim, devilhorns

Subscribers: torori, cedric

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

9 years agoethumb: Fixing eina_init to eina_shutdown.
Srivardhan Hebbar [Tue, 9 Dec 2014 14:24:38 +0000 (09:24 -0500)]
ethumb: Fixing eina_init to eina_shutdown.

Summary:
In the end we should call eina_shutdown, but by mistake eina_init is being called. So have corrected that.

@fix

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: devilhorns

Subscribers: cedric

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

9 years agoevas_xcb_outbuf: fix memory leak
kabeer khan [Tue, 9 Dec 2014 14:22:41 +0000 (09:22 -0500)]
evas_xcb_outbuf: fix memory leak

Summary: This fixes a leak in the xcb engine where the Outbuf_Region
was not being freed.

@fix

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>
Reviewers: devilhorns

Subscribers: cedric

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

9 years agoeina: removed multiple eina_init call.
Srivardhan Hebbar [Tue, 9 Dec 2014 10:16:42 +0000 (11:16 +0100)]
eina: removed multiple eina_init call.

Summary:
I observed that eina_init() was called twice in this function and eina_shutdown() once. So thought this might be a mistake, and so have cleaned it.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: devilhorns, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoEvas GL: Fix scissors with direct rendering
Jean-Philippe Andre [Tue, 9 Dec 2014 09:35:35 +0000 (18:35 +0900)]
Evas GL: Fix scissors with direct rendering

If an app calls glDisable(SCISSORS) and uses direct rendering,
then the DR scissors were dropped and so glClear would erase
the contents of the entire canvas, instead of being restricted
to the image object.

9 years agoEvas GL: Fix current FBO after make_current(0, 0)
Jean-Philippe Andre [Tue, 9 Dec 2014 09:02:20 +0000 (18:02 +0900)]
Evas GL: Fix current FBO after make_current(0, 0)

Example scenario:
- Create a direct rendered Evas GL 'sfc' 'ctx'
- Create a PBuffer dummy surface, make it current
- Do some stuff
- Make current (NULL, NULL) to go back to no target
- Make current (sfc, ctx)
--> glClear() will not render anything on screen

Reason:
The current FBO binding is still set to the implicit FBO
bound to the PBuffer surface (it could be any surface, really).

9 years agoedje/edje_cc: don't limit the bezier cubic minium value to 0.
ChunEon Park [Tue, 9 Dec 2014 07:59:58 +0000 (16:59 +0900)]
edje/edje_cc: don't limit the bezier cubic minium value to 0.

No need to limit the minimum value to 0.
let user have a choice.

9 years agoecore/animator: improve the doc description.
ChunEon Park [Tue, 9 Dec 2014 07:51:08 +0000 (16:51 +0900)]
ecore/animator: improve the doc description.

9 years agoecore/animator: code refactoring.
ChunEon Park [Tue, 9 Dec 2014 07:43:23 +0000 (16:43 +0900)]
ecore/animator: code refactoring.

renamed to more meaningful name.
don't stupid computaion twice.

9 years agoecore/animator: fix the wrong computation of bezier cubic.
ChunEon Park [Tue, 9 Dec 2014 07:27:29 +0000 (16:27 +0900)]
ecore/animator: fix the wrong computation of bezier cubic.

Previous beizer cubic finds t value approximately.
In this sequence, there were 2 problems.

1. Previous guess_t value should be passed to differential equation to get the more accurate t value.
2. Guessing time count is not enough. I found 6 is enough time to get the t value experimentally. Previously it just tried 4 times on the other hand.

@fix

9 years agoRevert "ecore/animator: fix the bezier cubic compuation."
ChunEon Park [Tue, 9 Dec 2014 03:19:03 +0000 (12:19 +0900)]
Revert "ecore/animator: fix the bezier cubic compuation."

This reverts commit 2e1032e28f0cd704ffaf28cea0b5ad533ae2b6c1.

This patch is wrong. On reviewing the origin implementation.

9 years agoRevert "ecore/animator: simpler code"
ChunEon Park [Tue, 9 Dec 2014 03:18:48 +0000 (12:18 +0900)]
Revert "ecore/animator: simpler code"

This reverts commit 44f0f3e1707f0ade71eb7ccab5ecc70494c00ad8.

9 years agoedje: Edje_Edit - generate 'perspective' block
Maksym Volodin [Tue, 9 Dec 2014 02:10:59 +0000 (03:10 +0100)]
edje: Edje_Edit - generate 'perspective' block

Summary: Adds focal and zplane perspective to the part when generating an EDC.

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: Edje_Edit - add generation of missed properties of 'image' block.
Kateryna Fesyna [Tue, 9 Dec 2014 02:07:27 +0000 (03:07 +0100)]
edje: Edje_Edit - add generation of missed properties of 'image' block.

Summary: add generation of missed parameters: scale_hint, border_scale and border_scale_by.

Reviewers: Hermet, cedric, raster

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoEvas font: Improve RLE rounding alpha8 to alpha44
Jean-Philippe Andre [Tue, 9 Dec 2014 02:00:38 +0000 (11:00 +0900)]
Evas font: Improve RLE rounding alpha8 to alpha44

This should ensure that the difference between the original
pixel value and the rle4 encoded one is <= 8.

The previous fix was a bit stupid as it was not taking into
account the conversion a4 to a8 (which is a8 = (a4 << 4) | a4).

9 years agoelocation test binary variables should not be defined if tests don't exist
Mike Blumenkrantz [Mon, 8 Dec 2014 20:26:09 +0000 (15:26 -0500)]
elocation test binary variables should not be defined if tests don't exist

src/Makefile_Elocation.am:32: warning: variable 'tests_elocation_elocation_suite_SOURCES' is defined but no program or
src/Makefile_Elocation.am:32: library has 'tests_elocation_elocation_suite' as canonical name (possible typo)
src/Makefile.am:82:   'src/Makefile_Elocation.am' included from here
src/Makefile_Elocation.am:41: warning: variable 'tests_elocation_elocation_suite_LDADD' is defined but no program or
src/Makefile_Elocation.am:41: library has 'tests_elocation_elocation_suite' as canonical name (possible typo)
src/Makefile.am:82:   'src/Makefile_Elocation.am' included from here
src/Makefile_Elocation.am:42: warning: variable 'tests_elocation_elocation_suite_DEPENDENCIES' is defined but no program or
src/Makefile_Elocation.am:42: library has 'tests_elocation_elocation_suite' as canonical name (possible typo)
src/Makefile.am:82:   'src/Makefile_Elocation.am' included from here

9 years agobuild fix for elua binary when using -jX
Mike Blumenkrantz [Mon, 8 Dec 2014 20:23:43 +0000 (15:23 -0500)]
build fix for elua binary when using -jX

libtool: link: cannot find the library `lib/elua/libelua.la' or unhandled argument `lib/elua/libelua.la'
make[2]: *** [bin/elua/elua] Error 1

9 years agoupower module now errors and kills itself off when unsupported new version detected
Mike Blumenkrantz [Mon, 8 Dec 2014 20:02:05 +0000 (15:02 -0500)]
upower module now errors and kills itself off when unsupported new version detected

0.99.0 removed the OnLowBattery property and added the per-device WarningLevel property. this requires what will effectively be a full rewrite of the module to track all the power levels of all the attached batteries and set the ecore power level somehow based on a combination of their levels

since I have no desire to spend any more hours working on and debugging this module which is based on a known-unstable api, I'm making it disable itself if it detects a version >= 0.99.0. hopefully someone will decide to maintain both this and eldbus in the future so that we can more accurately track upstream when they make changes to these things

ref T1908

ref T1909

9 years agoeldbus hackaround for proxy deletion during pending callback
Mike Blumenkrantz [Mon, 8 Dec 2014 19:55:30 +0000 (14:55 -0500)]
eldbus hackaround for proxy deletion during pending callback

this is merely a way to avoid crashing immediately when the referenced bug is triggered. it does not fix the problem.

ref T1908

9 years agoelua: add pc file into gitignore
Daniel Kolesa [Mon, 8 Dec 2014 16:13:02 +0000 (16:13 +0000)]
elua: add pc file into gitignore

9 years agoelua: add elua.pc to configure.ac and add cmake definitions for elua
Daniel Kolesa [Mon, 8 Dec 2014 16:11:35 +0000 (16:11 +0000)]
elua: add elua.pc to configure.ac and add cmake definitions for elua

9 years agoelua: add pkg-config for the elua library
Daniel Kolesa [Mon, 8 Dec 2014 15:59:13 +0000 (15:59 +0000)]
elua: add pkg-config for the elua library

9 years agoeina: Refactored code and removed unwanted assignment.
Srivardhan Hebbar [Mon, 8 Dec 2014 13:46:50 +0000 (14:46 +0100)]
eina: Refactored code and removed unwanted assignment.

Summary:
Removed unused assignment for length.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: devilhorns

Subscribers: cedric

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

9 years agoelua: initial skeleton for the Elua library
Daniel Kolesa [Mon, 8 Dec 2014 11:38:04 +0000 (11:38 +0000)]
elua: initial skeleton for the Elua library

Because of Bob and other things, it is required to separate the functionality currently
provided by the elua binary into a library. This library will then be used by the elua
binary as well as any other project.

9 years agoevas/gl_drm: Fix warning
Gwanglim Lee [Mon, 8 Dec 2014 10:07:27 +0000 (19:07 +0900)]
evas/gl_drm: Fix warning

Using int instead of uint32_t.

9 years agoEvas font: Compress font algo should round instead of floor
Jean-Philippe Andre [Mon, 8 Dec 2014 04:50:44 +0000 (13:50 +0900)]
Evas font: Compress font algo should round instead of floor

This is an attempt at having higher quality font rendering
while still using RLE-based font compression.

9 years agoeina_thread: fix memory leak
kabeer khan [Mon, 8 Dec 2014 08:19:28 +0000 (09:19 +0100)]
eina_thread: fix memory leak

Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

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

9 years agoeina: corrected documentation of ecore_hash_destroy function in benchmarj.
Srivardhan Hebbar [Mon, 8 Dec 2014 08:18:08 +0000 (09:18 +0100)]
eina: corrected documentation of ecore_hash_destroy function in benchmarj.

Summary:
ecore_hash_destroy function return nothing, still in the documentation of the function, it was mentioned that it would return true or false. So corrected the documentation.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: devilhorns, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore-wayland: make possible to disable xdg-shell at runtime
Philippe Coval [Fri, 5 Dec 2014 19:02:16 +0000 (14:02 -0500)]
ecore-wayland: make possible to disable xdg-shell at runtime

Summary:
Since xdg-shell is not yet supported officialy by wayland
It makes sense to have it disabled by default
and enable it on purpose.

Using env variable : EFL_WAYLAND_DONT_USE_XDG_SHELL
(name is inspired from Qt implementation of xdg-shell
but in the opposite way)

There is no EFL_WAYLAND_USE_XDG_SHELL in efl,
please use EFL_WAYLAND_DONT_USE_XDG_SHELL instead.

By default xdg-shell is enabled since it's supported by efl

Since there is only one shell supported at runtime
it's easier to switch to wl-shell (wayland's fallback shell)
by change this env variable.

Note, this patch can be reverted once xdg-shell replaces wl-shell
in wayland which is not the case in weston-1.6
but could integrated into upcoming wayland-1.7
(to be confirmed on release)

Change-Id: Id3732492397df9abe4a7c9e6e92a8f2c993c8395
Bug: https://phab.enlightenment.org/T1901
Bug-Tizen: TC-1353/part
Forwarded: https://phab.enlightenment.org/T1901
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
Tizen Test Plan: echo 'export EFL_WAYLAND_DONT_USE_XDG_SHELL=defined' > /etc/profile.d/ecore.sh

Reviewers: seoz, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

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

9 years agoeeze_scanner now has separate return codes for various startup-related failures
Mike Blumenkrantz [Fri, 5 Dec 2014 18:35:14 +0000 (13:35 -0500)]
eeze_scanner now has separate return codes for various startup-related failures

ref T1612

9 years agoeeze_scanner needs to hash on the address of the pointer and not use direct_add()
Mike Blumenkrantz [Fri, 5 Dec 2014 18:34:11 +0000 (13:34 -0500)]
eeze_scanner needs to hash on the address of the pointer and not use direct_add()

this is an @fix for the constant crashing

ref T1612

9 years agoecore-con now prints error messages when local socket creation fails
Mike Blumenkrantz [Fri, 5 Dec 2014 18:19:49 +0000 (13:19 -0500)]
ecore-con now prints error messages when local socket creation fails

9 years agoecore-evas-wayland: Fix issue with ELM_PROFILE=mobile and windows not
Chris Michael [Fri, 5 Dec 2014 17:49:42 +0000 (12:49 -0500)]
ecore-evas-wayland: Fix issue with ELM_PROFILE=mobile and windows not
showing up correctly.

Summary: If elm config profile is set to Mobile, then the
auto_norender_withdrawn is set to 1, which was causing Elm windows to
not draw properly due to the ee->withdrawn property not being updated.
It was not getting updated due to these checks for override.

NB: Tested this with all elm profiles, tested in weston, and tested in
Enlightenment (Wayland).

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoeldbus: Use the timeout parameter on eldbus_proxy_send_and_block()
José Roberto de Souza [Fri, 5 Dec 2014 03:04:20 +0000 (01:04 -0200)]
eldbus: Use the timeout parameter on eldbus_proxy_send_and_block()

Sorry by bad I had forgot to use the new parameter.

9 years agoeldbus: Add timeout parameter to eldbus_proxy_send_and_block()
José Roberto de Souza [Fri, 5 Dec 2014 03:04:20 +0000 (01:04 -0200)]
eldbus: Add timeout parameter to eldbus_proxy_send_and_block()

As all other send functions have, we need to have here.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoeldbus: Fix _eldbus_connection_send_and_block()
José Roberto de Souza [Fri, 5 Dec 2014 03:01:37 +0000 (01:01 -0200)]
eldbus: Fix _eldbus_connection_send_and_block()

Some problems with the actual implementation:
- the reply should not be writable, as it can only be read.
- if an error happen dbus_connection_send_with_reply_and_block()
will return NULL so we need check before use it
- all other send calls remove one reference of the message

Now also it is creating a error message, so the caller can know why it fail.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore/animator: simpler code
ChunEon Park [Fri, 5 Dec 2014 14:24:16 +0000 (23:24 +0900)]
ecore/animator: simpler code

9 years agoecore/animator: fix the bezier cubic compuation.
ChunEon Park [Fri, 5 Dec 2014 14:17:38 +0000 (23:17 +0900)]
ecore/animator: fix the bezier cubic compuation.

The previous compuation is totally wrong.
Even it doesn't work correctly.
(I have no idea what the orignal author was thinking?)

Here we just need a simple and clear fomular to get the current progress frame.

If i'm wrong, please ping me.

@fix

9 years agoEo: fix error handling when too many deletions invocations occur.
Daniel Zaoui [Fri, 5 Dec 2014 01:19:47 +0000 (03:19 +0200)]
Eo: fix error handling when too many deletions invocations occur.

Before this fix, when a deletion was invoked twice on an object, a
wrong message ("...You wrongly call eo_unref() within a destructor...")
was printed. This was caused by the del_triggered flag that was not
resetted when the destruction finished.

This patch fixes this behavior by printing the right message on a double
deletion.

9 years agoeldbus: Add actual API function code for eldbus_proxy_send_and_block
Chris Michael [Thu, 4 Dec 2014 14:48:21 +0000 (09:48 -0500)]
eldbus: Add actual API function code for eldbus_proxy_send_and_block

Summary: This adds the actual code to send a dbus message and block
while waiting for a reply.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoeldbus: Add code for _eldbus_connection_send_and_block function
Chris Michael [Thu, 4 Dec 2014 14:47:01 +0000 (09:47 -0500)]
eldbus: Add code for _eldbus_connection_send_and_block function

Summary: This function will send a message to dbus and block while
waiting for a reply

NB: This is needed for our 'port to libinput', and for our 'opening up the
drm card without systemd' efforts

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoeldbus: Add API function declaration for eldbus_proxy_send_and_block
Chris Michael [Thu, 4 Dec 2014 14:45:51 +0000 (09:45 -0500)]
eldbus: Add API function declaration for eldbus_proxy_send_and_block

Summary: This adds a public facing API function to make dbus calls
which will block and wait for a reply. This is needed for a couple of
use cases in our Wayland efforts (libinput, etc).

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoeldbus: Add function prototype for send_and_block
Chris Michael [Thu, 4 Dec 2014 14:43:50 +0000 (09:43 -0500)]
eldbus: Add function prototype for send_and_block

Summary: This just adds the function prototype into the eldbus private
header. It will be used in the new proxy function
"eldbus_proxy_send_and_block"

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore: Fix @since version to 1.13 for new API
Stefan Schmidt [Thu, 4 Dec 2014 14:02:34 +0000 (15:02 +0100)]
ecore: Fix @since version to 1.13 for new API

1.3 is acient so we really will release this with 1.13.
Removed some trailing whitespaces devilhorns added. :)

9 years agoecore: Add code for new API function 'ecore_main_loop_nested_get'
Chris Michael [Thu, 4 Dec 2014 13:56:43 +0000 (08:56 -0500)]
ecore: Add code for new API function 'ecore_main_loop_nested_get'

Summary: This commit adds the actual code to the function, which
returns the 'in_main_loop' variable so that we can detect if the
ecore_main_loop is actually running.

NB: Will be needed for new eldbus API function (yet to add).

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore: Add a new API function ecore_main_loop_nested_get
Chris Michael [Thu, 4 Dec 2014 13:54:48 +0000 (08:54 -0500)]
ecore: Add a new API function ecore_main_loop_nested_get

Summary: This commit adds a new function 'ecore_main_loop_nested_get'
so that we can detect if the ecore_main_loop is running.

NB: This is going to be needed for a new eldbus function that we have
to add in order to handle a use-case on the Wayland side. Spoke with
cedric for a while wrt to all this, and he gave it his 'ok' ;)

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoconfigure: Add note about automake 1.14 problem
Stefan Schmidt [Thu, 4 Dec 2014 13:11:35 +0000 (14:11 +0100)]
configure: Add note about automake 1.14 problem

Maybe we can remove this once it is fixed and the fixed version it widely used.

9 years agobuild: support automake-1.14
Philippe Coval [Thu, 4 Dec 2014 12:50:58 +0000 (13:50 +0100)]
build: support automake-1.14

Summary:
This was needed to install example on purposes

The problem is that the install_sh* variables
in generated makefiles are expanding to ~/install-sh
which is wrong and should be the one in root source tree

Change-Id: I5311298864a5f042de90071cb6dfaefbefdf001a
Bug: https://phab.enlightenment.org/T1889
Bug-Tizen: TC-2177
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
Reviewers: seoz

Subscribers: stefan_schmidt, cedric

Maniphest Tasks: T1889

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

9 years agoevas/examples: fix warnings.
ChunEon Park [Thu, 4 Dec 2014 10:47:41 +0000 (19:47 +0900)]
evas/examples: fix warnings.

removed unused.

9 years agoevas/examples: fix build break
ChunEon Park [Thu, 4 Dec 2014 10:42:27 +0000 (19:42 +0900)]
evas/examples: fix build break

add dependency libefl to call efl_file_set().

9 years agoevas/gl_drm: add native surface for wayland_egl_client.
Mun, Gwan-gyeong [Thu, 4 Dec 2014 08:59:30 +0000 (17:59 +0900)]
evas/gl_drm: add native surface for wayland_egl_client.

Reviewers: zmike, devilhorns, cedric, gwanglim

Reviewed By: cedric, gwanglim

Subscribers: jpeg, torori, cedric

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

9 years agoevas - gif loader - fix technically "wrong" sizeof (doesnt cause a bug)
Carsten Haitzler (Rasterman) [Thu, 4 Dec 2014 07:03:32 +0000 (16:03 +0900)]
evas - gif loader - fix technically "wrong" sizeof (doesnt cause a bug)

go from sizeof(char **) to sizeof(char *) ... effectively. so no real bug.

9 years agoecore-drm: Remove erroneous debug messages
Chris Michael [Wed, 3 Dec 2014 19:18:52 +0000 (14:18 -0500)]
ecore-drm: Remove erroneous debug messages

Summary: No real function changes, just some cleanup of old debug
messages

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoelua: support is_c_only in lualian
Daniel Kolesa [Wed, 3 Dec 2014 15:27:38 +0000 (15:27 +0000)]
elua: support is_c_only in lualian

9 years agoeolian: eolian_function_is_c_only tests
Daniel Kolesa [Wed, 3 Dec 2014 15:04:40 +0000 (15:04 +0000)]
eolian: eolian_function_is_c_only tests

9 years agoeolian: add eolian_function_is_c_only
Daniel Kolesa [Wed, 3 Dec 2014 14:59:24 +0000 (14:59 +0000)]
eolian: add eolian_function_is_c_only

This function allows us to mark functions that are not bindable.
Also remove some obsolete code.

9 years agoecore con: Fix GnuTLS build error.
Andreas Metzler [Wed, 3 Dec 2014 12:07:40 +0000 (12:07 +0000)]
ecore con: Fix GnuTLS build error.

By making the respective changes on the GnuTLS side for upstream commits
d9b5f192d4883193f79cd3e43ed1da52521825dc and
d72f809fb874c8f14b1461949802905d41d648a1
which only take care of OpenSSL.

@fix

9 years agoedje/edje_cc_handler - updated internal doc.
ChunEon Park [Wed, 3 Dec 2014 12:09:06 +0000 (21:09 +0900)]
edje/edje_cc_handler - updated internal doc.

9 years agoEvas: Evas_3D - Add check of visibilty node.
Dmytro Dadyka [Wed, 3 Dec 2014 08:48:55 +0000 (09:48 +0100)]
Evas: Evas_3D - Add check of visibilty node.

If the node is not visible, it is not rendered, which improves performance.
@feature.

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoautotools: fix compiling/linking gl engines on OSX.
Jean Guyomarc'h [Wed, 3 Dec 2014 08:45:51 +0000 (09:45 +0100)]
autotools: fix compiling/linking gl engines on OSX.

Summary:
Until now, it was necessary to set global LDFLAGS and CFLAGS to allow
compiling (and linking) engines using OpenGL.
gl_generic used to complained about missing headers or unkown libraries.
A problem on OSX is that there is CGL (Apple's Core OpenGL) on which the whole system
relies on and GLX, when X11 is installed; and they cohabit together.
When gl_cocoa is enabled, gl_generic is now linked against CGL.
When it is not, gl_generic is compiled with and linked against GLX as a fallback.

@fix

Test Plan:
With --enable-cocoa: software_x11, opengl_x11 and opengl_cocoa are working as expected.
With --disable-cocoa: software_x11 and opengl_x11 are also working as expected.
No compiling nor linking problems have been issued.

Reviewers: cedric, raster, raoulh

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - fix typo.
perepelits.m [Wed, 3 Dec 2014 08:42:50 +0000 (09:42 +0100)]
evas: Evas_3D - fix typo.

Summary:
A little fix of copy-paste, there were problems while changing texture coordinates of indices.

@fix

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoEvas GL: Clarify doc about Evas_GL_API struct version
Jean-Philippe Andre [Wed, 3 Dec 2014 03:08:03 +0000 (12:08 +0900)]
Evas GL: Clarify doc about Evas_GL_API struct version

9 years agoEvas GL: Add preventive padding after Evas_GL_API
Jean-Philippe Andre [Wed, 3 Dec 2014 02:44:09 +0000 (11:44 +0900)]
Evas GL: Add preventive padding after Evas_GL_API

Since this struct is likely to grow in size over time, client apps
built against future versions of EFL might start indexing fields
that are not present in the current form.

Also, don't reset the struct memory as this would break
multithreaded GL applications.

While this is not exactly a fix, I'll backport this.

@fix

9 years agoevas-gl-drm: remove initalizing gbm on engine setup
MinJeong Kim [Wed, 3 Dec 2014 07:30:13 +0000 (16:30 +0900)]
evas-gl-drm: remove initalizing gbm on engine setup

Summary: Removed evas_drm_gbm_init() on the initial setup of evas gl_drm engine.

Reviewers: gwanglim

Reviewed By: gwanglim

Subscribers: cedric

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

9 years agoEvas GL: Update evas gl api version number to 3
Gwanglim Lee [Wed, 3 Dec 2014 02:48:03 +0000 (11:48 +0900)]
Evas GL: Update evas gl api version number to 3

evas gl api supports wayland extensions as being part of a struct
of version 3.

9 years agoEvas GL: Add support for bind_wayland_display extension
Gwanglim Lee [Tue, 2 Dec 2014 13:45:36 +0000 (22:45 +0900)]
Evas GL: Add support for bind_wayland_display extension

This provides EGL_WL_bind_wayland_display EGL extension to bind
and unbind the wl_display of a wayland server to an EGLDisplay.

@feature

9 years agoecore-wayland: Check for xdg_surface before sending ack_configure
Chris Michael [Mon, 1 Dec 2014 18:52:30 +0000 (13:52 -0500)]
ecore-wayland: Check for xdg_surface before sending ack_configure

Summary: Calling wayland library functions with NULL typically leads
to an abort, so add a safety check for valid xdg_surface before
calling function

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-wayland: Fix formatting
Chris Michael [Mon, 1 Dec 2014 18:51:02 +0000 (13:51 -0500)]
ecore-wayland: Fix formatting

Summary: No functional changes, just formatting

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-wayland: Add safety check for xdg_popup creation
Chris Michael [Mon, 1 Dec 2014 18:47:10 +0000 (13:47 -0500)]
ecore-wayland: Add safety check for xdg_popup creation

Summary: xdg_shell_get_xdg_popup could return NULL, in which case any
calls below would cause an abort in the wayland libraries, so this
adds a trap for that.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-wayland: Add safety check for window surface creation
Chris Michael [Mon, 1 Dec 2014 18:45:23 +0000 (13:45 -0500)]
ecore-wayland: Add safety check for window surface creation

Summary: We cannot call wl_proxy_get_id if the surface creation failed
else that would lead to an abort in the wayland libraries. This commit
adds a safety check

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-wayland: No need for setting the input here as it's done again
Chris Michael [Mon, 1 Dec 2014 18:43:34 +0000 (13:43 -0500)]
ecore-wayland: No need for setting the input here as it's done again
directly below.

Summary: Not much of a functional change, just removing an extra
unnecessary line. Input is being set directly below this with an if
(!( line, so no point in this one.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>