Commit Graph

785 Commits

Author SHA1 Message Date
Hosang Kim d6ce6a8cd5 ecore_wl2_window: copy available rotation info.
Summary:
ecore_wl2_window doesn't copy rotation information.
If passed pointer is destroyed, rotation information disappears.
So add memory allocating for managing information.

Reviewers: CHAN, devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11891
2020-05-27 10:05:30 -04:00
Woochanlee 28d41f4e6c ecore_wl2: Fix event type name.
Summary: It's been missed commit 9ca13ef5c1

Reviewers: Hermet, devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11889
2020-05-27 10:03:38 -04:00
Marcel Hollerbach 8e3606698e refactor build
libraries are split into deps, external deps, and pub deps.
Evas engines are refactored to use the predefined engine deps.

this is preparation work for efl-one.

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11806
2020-05-27 11:06:46 +02:00
Christopher Michael 6f68a9d892 ecore-wl2: Remove unused variables
Patch d584696f12 remove the unmapping of subsurfaces on window
hide, however the variables were left declared so remove those
2020-05-26 14:49:32 -04:00
Christopher Michael b655111c6d ecore-wl2: Fix build break from patch 9ca13ef5c1
Above commit caused a build break from a missing comma ... Sole blame
falls on the reviewer for not doing a build test ... bad me ;)
2020-05-26 14:47:56 -04:00
Woochanlee 9ca13ef5c1 ecore_wl2 : Organize window creation/deletion events.
Summary:
Add create / destroy events.
Call hide event when the window terminated if the window was visible.

Reviewers: devilhorns, Hermet, raster

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11878
2020-05-26 11:49:16 -04:00
Shinwoo Kim d584696f12 ecore_wl2_window: do not unmap subsurface in hide
Summary:
If window_hide should unmap subsurface, then window_show should re-map
the unmapeed subsurface. I have no idea why window_hide unmap all subsurfs.

Reviewers: zmike, devilhorns

Reviewed By: zmike, devilhorns

Subscribers: devilhorns, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11869
2020-05-26 11:49:07 -04:00
Stefan Schmidt b135341961 lib: add more c_args handling for places we missed before
These meson files did not have the c_args handling before. Make sure we
use package_c_args here as well.

Reviewed-by: Vincent Torri <vincent.torri@gmail.com>
Reviewed-by: João Paulo Taylor Ienczak Zanette <joao.tiz@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D11860
2020-05-26 10:15:27 +02:00
Alastair Poole 53044bf107 ecore_wl2: EFL Wayland Build on FreeBSD
This enables a user to build EFL with wayland support enabled
on FreeBSD. It is NOT functioning, but everything starts at
some point.

This requires also linking against -lepoll-shim.
Meson arguments:
-Deeze=false -Dv4l2=false -Dfb=false -Ddrm=false -Dwl=true \
-Dsystemd=false

@fix T8659
2020-04-21 18:19:36 +01:00
Xavi Artigas bb519386fd doxygen docs: Fix warnings in Ecore_Wl2.h and associates 2020-03-24 13:43:37 +01:00
Xavi Artigas 5b2d2a85b2 doxygen docs: Fix tons of invalid Doxygen commands
Mostly typos
2020-03-10 21:36:34 +01:00
Wonki Kim 34477e1cbe ecore_wl: removes unreachable statements
Summary: this patch removes unreachable statements

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11437
2020-03-02 18:26:39 +09:00
Woochanlee ec4ea2d06d ecore_wl2: Fix doc(delete tags).
Reviewers: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11226
2020-01-29 09:01:51 -05:00
Marcel Hollerbach fdf0aee35c ecore_wl2: do not silently return
Summary:
if we are getting a up event after our touch window object is not
focused anymore, then the compositor has sent a invalid up. Beeing
explicit here is important, otherwise we might leak a pressed finger on
the touchscreen.
Depends on D11199

Reviewers: zmike, devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11200
2020-01-27 11:23:30 -05:00
Marcel Hollerbach 7adcaedc08 ecore_wl2: only ungrab/grab on last/first down/up event
Summary: otherwise we are silently forgetting about up events.

Reviewers: zmike, devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11199
2020-01-27 11:23:13 -05:00
Woochanlee bcff657ed7 Revert "ecore-wl2: Move ecore_wl2_window_output_find function to be internal"
Summary:
This reverts commit 64dacb3d07.

User can't use ecore_wl2_output_dpi_get() , ecore_wl2_output_transform_get() APIs without this API.

Reviewers: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11154
2020-01-22 07:43:49 -05:00
Woochanlee e23dc58e20 Revert "ecore-wl2: Move ecore_wl2_input_cursor_from_name_set to be internal"
Summary:
This reverts commit 6a1d6b6705. This API
is used publicly in Tizen, so we cannot make it internal.

ref T8016

Reviewers: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T8016

Differential Revision: https://phab.enlightenment.org/D11147
2020-01-22 07:43:32 -05:00
Woochanlee 46cfcf7190 ecore_wl2: Add ecore_wl2_input_default_input_get() API.
Summary: Gets default input which created by display.

Reviewers: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11132
2020-01-22 07:38:45 -05:00
Woochanlee f174053564 ecore_wl2: Add ecore_wl2_input_keyboard_repeat_set() API.
Summary:
Add API to set input's keyboard repeat.

get API was already there.

Reviewers: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11131
2020-01-22 07:37:11 -05:00
Chris Michael 6a1d6b6705 ecore-wl2: Move ecore_wl2_input_cursor_from_name_set to be internal
This function is unused outside of EFL, so it can be made internal

ref T8013
2020-01-21 10:08:31 -05:00
Chris Michael e34b338f71 ecore-wl2: Move ecore_wl2_display_terminate to be internal
This function is unused outside of EFL, so it can be made internal

ref T8013
2020-01-21 10:07:34 -05:00
Marcel Hollerbach 55ec2dc89e Revert "ecore_wl2: Fix a memory leaking case"
This reverts commit 97e71b9dc4.

This commit is absolutly wrong. This makes running wayland apps intree
impossible, and also crashes tests when run in wayland mode.

I asked multiple times in the revision for clarification, noone
answered.
This tricked me today for the second time, so better revert that.
2020-01-20 17:51:40 +01:00
Christopher Michael ae8673628d ecore-wl2: Move ecore_wl2_window_aux hint functions to be internal
These functions are unused outside of EFL (not used in Enlightenment
or Tizen), so there is no need to expose them publicly.

ref T8013
2020-01-15 10:20:54 -05:00
Christopher Michael 64dacb3d07 ecore-wl2: Move ecore_wl2_window_output_find function to be internal
This function is unused outside of EFL, so it does not need to be
public. Move function to be internal

ref T8013
2020-01-09 10:54:17 -05:00
Christopher Michael eafed87ffd ecore-wl2: Move ecore_wl2_subsurface functions to be internal
These functions are not used outside of EFL so there is no need for
them to be public.

ref T8013
2020-01-09 10:20:53 -05:00
Christopher Michael e3a28ecd1e ecore-wl2: Move ecore_wl2_offer functions to be internal
These functions are not used outside of EFL, so there is no need for
them to be public.

ref T8013
2020-01-09 10:20:49 -05:00
Christopher Michael b3114e2484 ecore-wl2: Move ecore_wl2_dnd functions to be internal
These functions are not used inside Enlightenment and are only used
internally in EFL, so no need to be public

ref T8013
2020-01-09 10:20:46 -05:00
Christopher Michael ad3e3bba3b ecore-wl2: Remove unused API
This API is not used Anywhere inside EFL, Enlightenment, Or Tizen so
there is really no need for it to exist....one less unused API to
worry about.
2020-01-08 11:13:11 -05:00
Christopher Michael 73195a34de ecore-wl2: Fix return with no value in function returning non-void 2020-01-08 09:10:43 -05:00
Woochanlee 52fa6aa1b5 ecore_wl2: Move ecore_wl2_window_iconified, ecore_wl2_window_pending_get functions to be internal
Summary:
This iconified state doesn't match the compositor's.
pending is only works for user manual buffer render case.

So, no need for it to be a public.

ref T8016

Reviewers: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T8016

Differential Revision: https://phab.enlightenment.org/D11039
2020-01-08 08:00:25 -05:00
Woochanlee 926cbb98af ecore_wl2: Add APIs to get window property.
Summary:
Creates APIs to get property.

+ecore_wl2_window_popup_input_get
+ecore_wl2_window_input_region_get
+ecore_wl2_window_opaque_region_get

ref T8016

Reviewers: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T8016

Differential Revision: https://phab.enlightenment.org/D11038
2020-01-08 07:59:53 -05:00
Christopher Michael b3ba134036 ecore-wl2: Move ecore_wl2_window_buffer_transform_set to be internal
This function is unused outside of EFL internals, so there is no need
for it to be a public API.

ref T8013
2019-12-03 10:47:32 -05:00
Christopher Michael 40b4c54467 ecore-wl2: Move ecore_wl2_window_buffer_attach to be internal
As this function is not used outside of EFL itself, it can be moved to
be internal and not an exposed API function

ref T8013
2019-12-03 10:40:21 -05:00
Woochanlee 6162914be5 ecore_wl2: Add APIs to get window properies.
Summary: Creates APIs to get property.

Reviewers: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10743
2019-12-02 08:50:24 -05:00
Christopher Michael e36b1930bf ecore-wl2: Add API to find a window by given surface
This patch adds a convenience function to find a window by a given
wl_surface.

@feature
2019-11-19 09:44:45 -05:00
Christopher Michael 68ea9f1a71 ecore-wl2: Add API to return window type
Small patch whichs adds a new API to return the type of a given window

@feature
2019-11-19 09:44:45 -05:00
Christopher Michael ab51bbeeef ecore-wl2: Add API to return the compositor object from a given display
This patch adds a convenience function to get the wl_compositor object
from a given display

@feature
2019-11-19 09:44:45 -05:00
Christopher Michael 7fb23c2da1 ecore-wl2: Add API to find a connected display given a name
This patch adds a convenience function to find a connected display
given a name

@feature
2019-11-19 09:44:45 -05:00
Christopher Michael a10a9ceccb ecore-wl2: Add API to find a window by surface
This patch adds a convenience API that can be used to find a window
based on wl_surface.

@feature
2019-11-19 09:44:40 -05:00
Christopher Michael 316136d032 ecore-wl2: Remove dead comment
Now that the (mostly unused) functions have been moved to be internal,
we don't need a comment in here about documenting them
2019-11-05 09:36:20 -05:00
Christopher Michael 40f10e204a ecore-wl2: Move ecore_wl2_surface_alpha_get function to be internal
As this function is only used in 1 place and will likely never be used
outside of the modular dmabuf engine, we can move it to be internal
only.

ref T8013
2019-11-05 09:36:16 -05:00
Christopher Michael ca3d6f0e7f ecore-wl2: Move ecore_wl2_surface_window_get function to be internal
As this function is only used in 1 place and will likely never be used
outside of the modular dmabuf engine, we can move it to be internal
only.

ref T8013
2019-11-05 09:36:13 -05:00
Christopher Michael 2069181bae ecore-wl2: Move ecore_wl2_surface_manager_del function to be internal
As this function is only used in 1 place and will likely never be used
outside of the modular dmabuf engine, we can move it to be internal
only.

ref T8013
2019-11-05 09:36:09 -05:00
Christopher Michael 8d6b409699 ecore-wl2: Move ecore_wl2_surface_manager_add function to be internal
As this function is only used in 1 place and will likely never be used
outside of the modular dmabuf engine, we can move it to be internal
only.

ref T8013
2019-11-05 09:36:05 -05:00
Christopher Michael 132851bc4e ecore-wl2: Move ecore_wl2_surface_buffer_create function to be internal
As this function is only used in 1 place and will likely never be used
outside of the modular dmabuf engine, we can move it to be internal
only.

ref T8013
2019-11-05 09:36:02 -05:00
Christopher Michael 307837d199 ecore-wl2: Move ecore_wl2_window_surface_flush function to be internal
As this function is only used in 1 place and will likely never be used
outside of the modular dmabuf engine, we can move it to be internal
only.

ref T8013
2019-11-05 09:35:58 -05:00
Christopher Michael 58e06a4740 ecore-wl2: Move ecore_wl2_surface_flush function to be internal
As this function is only used in 1 place and will likely never be used
outside of the modular dmabuf engine, we can move it to be internal
only.

ref T8013
2019-11-05 09:35:55 -05:00
Christopher Michael c333022f0b ecore-wl2: Move ecore_wl2_surface_post function to be internal
As this function is only used in 1 place and will likely never be used
outside of the modular dmabuf engine, we can move it to be internal
only.

ref T8013
2019-11-05 09:35:51 -05:00
Christopher Michael 49498f798b ecore-wl2: Move ecore_wl2_surface_assign function to be internal
As this function is only used in 1 place and will likely never be used
outside of the modular dmabuf engine, we can move it to be internal
only.

ref T8013
2019-11-05 09:35:48 -05:00
Christopher Michael e451a91270 ecore-wl2: Move ecore_wl2_surface_data_get function to be internal
As this function is only used in 1 place and will likely never be used
outside of the modular dmabuf engine, we can move it to be internal
only.

ref T8013
2019-11-05 09:35:44 -05:00