Commit Graph

32 Commits

Author SHA1 Message Date
Rafael Antognolli eefb2386e6 evas/wayland_egl: Subsurfaces handled as native surfaces.
This code assumes that a wl_buffer will be passed as a native surface to
an Evas image, and then Evas will handle it as appropriate. The image
will be used as is, or converted to a subsurface if possible.
2013-09-23 19:28:36 -03:00
Rafael Antognolli 0258a7c466 ecore/wayland: Add subsurface handling APIs. 2013-09-23 11:03:23 -03:00
Rafael Antognolli 0046e5b40f ecore/wayland: Add and initialize subcompositor inside Ecore_Wayland. 2013-09-23 11:03:23 -03:00
Chris Michael 836370422b Bump compositor interface version to 3.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-06 11:18:11 +01:00
Chris Michael 7fa2c11e72 Add some checking/trapping for valid wayland display.
Remove dead commented lines

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-24 07:15:44 +01:00
Chris Michael a233f23c2f Remove call to display_iterate during init (this stalls our compositor
due to code reuse and is not needed from the client side anyway).

Add function for setting "server mode" (this will allow us to avoid
any display_iterate calls which would block our compositor).

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-23 07:15:19 +01:00
Chris Michael b579df2f51 For cases of fatal errors on wl_display, return ECORE_CALLBACK_CANCEL
in the fd_handler and idler so we stop listening there.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-09 11:11:14 +01:00
Eduardo Lima (Etrunko) 1a2ae24e8b ecore_wayland: Yes, we need to call display_dispatch
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-06-26 11:36:07 -03:00
Chris Michael 3230114ff9 feature: Add support for global_remove in the display listener.
bugfix T151: Catch fatal error from wayland displays and signal apps to exit.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-06-26 11:57:49 +01:00
Chris Michael cda1abc1ec Dont need the ret variable unless we are actually going to use it.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-06-20 04:48:44 +01:00
Chris Michael db37405ef8 Debug--
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-06-17 23:22:19 +01:00
Chris Michael ff73dd600b Add ecore_wl_animator_source_set code for setting Custom animators.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-06-07 15:42:53 +01:00
Chris Michael 2b15d4ce1f Add dnd_offer and dnd_end event types.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-28 11:48:51 +01:00
Rafael Antognolli 2d62ea88e5 ecore/wayland: Add support for double and triple click.
It's implemented exactly the same way as on the X11 backend. It does
handle multiple devices, though may need some adjustments when
multi-touch is added, since there's no support for multi-touch on
EFL-wayland yet.
2013-04-10 14:53:14 -03:00
Rafael Antognolli 133e3e38f0 ecore/wayland: Sync before assuming that there's no output.
This will make the mainloop block waiting for the output info, if it's
not there yet, but it's better than just returning with no screen size.
2013-04-05 17:26:00 -03:00
Rafael Antognolli e38c985cd0 ecore/wayland: Actually wait for the sync callback on ecore_wl_sync().
The wl_display_sync() request doesn't really wait for all the requests
to be processed, but instead sends a request for the "done" event.
Wayland relies on the fact that the requests are processed in order, so
when the "done" event is received, it means that all the other requests
requested prior to the respective "sync" have been processed already.

This commit makes the ecore_wl_sync() call actually wait for its "done"
event (thus blocking the ecore mainloop).
2013-04-05 16:31:43 -03:00
Rafael Antognolli 97d06e5b3f ecore/wayland: Fix screen geometry when it is rotated.
Width and height should be swapped when the screen is rotated by 90 or
270 degrees.

Additionally, add a command to the ecore_evas_window_sizes_example which
returns the screen geometry.
2013-04-02 17:27:39 -03:00
Christopher Michael abd79fff9b Fix formatting.
Remove call to display_dispatch (not needed here during init).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>
2013-03-12 12:52:25 +00:00
Chris Michael fb8842bc24 Formatting fix.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-03-05 11:53:23 +00:00
Christopher Michael a37443ad87 Remove display_dispatch call (not needed here).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
2013-03-05 09:24:48 +00:00
Christopher Michael be94e53126 Fix formatting.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
2013-03-05 09:20:33 +00:00
U. Artie Eoff a2197ce503 Export API to C++, add wl_registry and global accessors
Add #ifdef __cpluscplus to Ecore_Wayland.h so the API can be used by C++
programs.  Add accessors for the wl_registry and the globals list.

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>

Patch by: "U. Artie Eoff" <ullysses.a.eoff@intel.com>



SVN revision: 83642
2013-02-05 16:53:31 +00:00
Christopher Michael aa1f8b4eac Let's do malloc the EFL way here.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83320
2013-01-25 07:19:48 +00:00
U. Artie Eoff c36058806a Cache wayland globals
Store the wayland registry globals in a list so that we can bind to them from a
user/test program. When a custom interface (protocol extension) is used in a
wayland compositor, this allows user/test program to use that interface. For
instance, one might provide a custom wayland test protocol that give access to
otherwise hidden/missing functionality that allows effective automated testing
(in wayland engines). See the Weston unit test suite for an example of this
concept.

Patch by: "U. Artie Eoff" <ullysses.a.eoff@intel.com>



SVN revision: 83312
2013-01-24 22:03:22 +00:00
Gustavo Sverzut Barbieri 05212a3d0e efl/ecore_wayland: move docs to header.
SVN revision: 81832
2012-12-28 19:36:01 +00:00
Christopher Michael 9f0e2fc7e8 Fix some minor formatting in Alex Wu's cpu patch.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81361
2012-12-19 13:58:52 +00:00
Christopher Michael 58304e01ab ecore-wayland: (version 2)Fix monitoring ECORE_FD_WRITE defaultly on wayland display fd lead to 100% cpu usage
In ecore_wl_init(), adding wayland display fd with ECORE_FD_WRITE
flag make CPU usage 100%. The proper way to monitor the ECORE_FD_WRITE
is when the wl_display_flush() return value < 0 and errno == EAGAIN.
And if wl_display_flush() return, we remove ECORE_FD_WRITE flag from
the display fd.

Change from v1:
Add idle enterer destroy code into _ecore_wl_shutdown() to avoid
using freed wl_display.

SVN revision: 81360
2012-12-19 13:58:48 +00:00
Jonas M. Gastal e3ae81e65f efl: Created Ecore group and added existing Ecore groups to it.
SVN revision: 81293
2012-12-18 18:38:44 +00:00
Alex Wu a3f102f742 Reverting 80476 and 80479. This solution is flawed and causes some weird
collateral damages that need further investigation. All programs running with
wayland engines are consuming 100% CPU.

ecore-wayland: Fix monitoring ECORE_FD_WRITE defaultly on
   wayland display fd lead to 100% cpu usage

  In ecore_wl_init(), adding wayland display fd with ECORE_FD_WRITE
  flag make CPU usage 100%. The proper way to monitor the ECORE_FD_WRITE
  is when the wl_display_flush() return value < 0 and errno == EAGAIN.
  And if wl_display_flush() return, we remove ECORE_FD_WRITE flag from
  the display fd.

  Patch by: Alex Wu <zhiwen.wu@linux.intel.com>


SVN revision: 80981
2012-12-14 19:00:53 +00:00
Alex Wu 4c534eb0e0 ecore-wayland: Fix monitoring ECORE_FD_WRITE defaultly on
wayland                display fd lead to 100% cpu usage

In ecore_wl_init(), adding wayland display fd with ECORE_FD_WRITE
flag make CPU usage 100%. The proper way to monitor the ECORE_FD_WRITE
is when the wl_display_flush() return value < 0 and errno == EAGAIN.
And if wl_display_flush() return, we remove ECORE_FD_WRITE flag from
the display fd.

Patch by: Alex Wu <zhiwen.wu@linux.intel.com>



SVN revision: 80476
2012-12-07 17:38:21 +00:00
Vincent Torri a3562c0173 ecore: whitespaces--
SVN revision: 80017
2012-12-03 07:37:17 +00:00
Vincent Torri 7d6010b12c merge: add escape ecore, fix several bugs
SVN revision: 79995
2012-12-02 22:35:45 +00:00