Mike Blumenkrantz
a08f8e7bbf
ecore-wl2: add ecore_wl2_display_name_get()
...
@feature
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
047118c6e2
ecore-wl2: add ecore_wl2_display_input_find()
...
for finding seat using hw id
@feature
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
68a3f43d1e
ecore-wl2: add functions for proxying a selection receive externally
...
in some cases (e.g,, x11 bridged selections) it is necessary to use
alternate means when transferring a selection, and so performing the
entire piped receive is not necessary. instead, extend the lifetime
of the data offer until the proxied receive has completed
@feature
2017-05-12 12:08:26 -04:00
Mike Blumenkrantz
8afdbaba48
ecore-wl2: add function for setting a drag source's actions without a drag
...
in some cases it may be desired to have a drag data source without ever
initiating a drag, so ensure that it's possible to set the actions of the
source which will be passed for drag operations in this case
@feature
2017-05-12 12:08:25 -04:00
Mike Blumenkrantz
f6964f50e3
ecore-wl2: add function for accepting a single mime type
...
@feature
2017-05-12 12:08:25 -04:00
Mike Blumenkrantz
2e5251b364
ecore-wl2: add events for changes in keymap, selection, and kbd repeat rate
...
@feature
2017-05-12 12:08:25 -04:00
Mike Blumenkrantz
d119fdded9
ecore-wl2: add 'cancelled' to Ecore_Wl2_Event_Data_Source_End
...
it's impossible to know the result of a drag operation without this
member
2017-05-12 12:08:25 -04:00
Mike Blumenkrantz
05fd3771e7
ecore-wl2: add display object to all events
...
this is required in order to determine which connection an event originated
from
2017-05-12 12:08:25 -04:00
Mike Blumenkrantz
4f2a8b8679
ecore-wl2: add seat id to most events
...
seat id is required in order to handle multiseat environments
2017-05-12 12:08:25 -04:00
Mike Blumenkrantz
37ff7b43f1
ecore-wl2: emit serials in selection-related events
...
these allow apps to match the serial of their selection to the related
event in order to avoid mangling selections from other components
2017-05-12 12:08:25 -04:00
Mike Blumenkrantz
d51252a69e
ecore-wl2: change selection setting apis to return the serial of the request
...
in the case where multiple places in an app may be handling selections, this
is necessary in order to manage the selections accurately
@feature
2017-05-12 12:08:25 -04:00
Mike Blumenkrantz
f32cb9ea00
ecore-wl2: add function for checking if a client connection sync is done
...
@feature
2017-05-12 12:08:25 -04:00
Mike Blumenkrantz
7c9e3d2dbd
ecore-wl2: add some accessors for useful Ecore_Wl2_Input struct members
...
@feature
2017-05-12 12:08:25 -04:00
Mike Blumenkrantz
8afe0a7a6c
ecore-wl2: store names for inputs and add api for retrieving name
...
@feature
2017-05-12 12:08:25 -04:00
Derek Foreman
6319f3831a
ecore_wl2: Remove unused code
...
ecore_wl2 contains a bunch of code for compositor side seat handling.
There's really no need for a client to do this, and E does the
compositor side seat stuff internally, so this code will never
be used.
This removes the unused code.
2017-04-17 14:45:14 -05:00
Derek Foreman
aedf55073a
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...
2017-03-09 12:21:09 -06:00
Chris Michael
755c50a84e
ecore-wl2: Add event to raise when window configure is completed.
...
Small patch to create and raise a new event letting ecore_evas know
when the window has been configured. With the addition of xdg_shell v6
support, we cannot commit a surface with an existing buffer until the
surface has been configured. This patch allows us to raise an event to
ecore_evas when the surface has been configured, so we can then attach
a buffer to it.
ref T5090
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-01-11 12:36:33 -05:00
Chris Michael
4bb9038b67
ecore-wl2: Minor formatting fixes
...
NB: No functional changes, just formatting
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-01-11 12:36:27 -05:00
Guilherme Iscaro
133b4fa65b
Ecore Wl2: Add ecore_wl2_window_pointer_device_xy_get() API.
...
This commit adds a Wayland specific function to fetch a mouse
position.
2016-12-20 18:34:39 -02:00
Guilherme Iscaro
6b95c4c2ec
Ecore Wl2 Input: Canvas focus IN/OUT events should contain the seat.
...
This provides the information about which seat originated the event.
2016-11-28 13:57:55 -02:00
Guilherme Iscaro
9f8e2e0d9c
Ecore Wayland: Remove ECORE_WL2_SEAT_CAPABILITIES_NO_SEAT.
...
Summary:
It's not possible to have an Ecore_Wl2_Input without a seat.
Ecore Evas Wayland: Remove seat existence check.
At this point every seat advertised is considered new, therefore
it will not be in the devices list.
Reviewers: barbieri, jpeg, cedric, bdilly
Reviewed By: bdilly
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4408
2016-11-16 17:50:32 -02:00
Guilherme Iscaro
9ba11c5cd0
Ecore Evas Wayland: Create the devices during Ecore_Evas setup.
...
Summary:
When launching an Elementary App using Wayland the elm_config will
automatically connect to the Wayland's display server and all events
regarding seats are lost, since by the time that Ecore_Evas is created
the global events were already dispatched. To fix this problem,
everytime an Ecore_Evas is created, the code must check if there
are any seat capabilities available, if so, the devices will be created.
Reviewers: bdilly, barbieri, cedric, jpeg
Subscribers: devilhorns, cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4390
2016-11-16 18:26:25 +09:00
Bruno Dilly
8bf74da7bc
ecore_wl2: associate evas devices to input ecore events
...
So users would be able to differentiate between source
seats.
2016-11-01 16:06:19 -02:00
Bruno Dilly
7aab35961f
ecore_wl2: add ecore event for seat capabilities change
...
So when mouse / keyboard are present or not it will
generate events.
ecore_evas/wayland will handle that creating or
deleting evas devices for each one (seat device
will be used as parent).
2016-11-01 16:06:19 -02:00
Bruno Dilly
d7b1a5dfeb
ecore_wl2: add ecore event for seat name change
...
And handle it on ecore_evas/wayland, properly
setting the evas device names.
2016-11-01 16:06:19 -02:00
Derek Foreman
09378052e7
ecore_wl2: Add API to disable session recovery
...
Enlightenment needs a way to avoid using session recovery functionality
when connecting to itself for internal windows.
2016-10-25 14:07:09 -05:00
Chris Michael
3a44b0fd17
Revert "ecore-wl2: Remove all references to wl_cursor usage"
...
This reverts commit 173fda5c11
.
Reverting this as we need to handle mouse pointers a different way.
2016-10-25 11:07:32 -04:00
Chris Michael
173fda5c11
ecore-wl2: Remove all references to wl_cursor usage
...
This commit essentially removes the ability to use wl_cursor for EFL
Wayland Client Applications. This is a request from "some old man" ;)
for efl wayland applications to use EFL pointers, not X/FDO pointers.
@feature
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-10-21 15:32:47 -04:00
Chris Michael
79815ea851
ecore-wl2: Fix typo in API function name
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-10-17 10:43:27 -04:00
Derek Foreman
35995be7b0
ecore_wl2: add API for testing if a window has a shell surface
2016-10-14 16:07:08 -05:00
Marcel Hollerbach
203b7a8fc6
ecore_wl2: support parallel receiving of different mimetypes
...
The mimetypes are now populated with the event and the data.
This also fixes CID 1363217
2016-09-26 13:17:24 +02:00
Marcel Hollerbach
b05f6dc1d7
ecore_wl2: add more documentation on ecore_wl2 cnp/dnd api
2016-09-23 11:15:14 +02:00
Marcel Hollerbach
5884bba096
ecore_wl2: introduce offer api
...
This commits adds api to deal with wayland offers.
It also ports elm_cnp to use the new api.
The selection_get and dnd_drag_get calls are replaced by simply receive
data from the offer.
The Offer object is now also emitted in every Enter,Motion,Drop and
Leave event, so a potential user can prefetch data and display it.
To finish a dnd operation positiv, the user has to call the finish call
before the offer is destroyed
2016-09-23 11:15:14 +02:00
Stefan Schmidt
063c31cb24
ecore_wl2: mark new events with since tag
2016-08-05 23:14:57 +02:00
Marcel Hollerbach
75bb8060b3
ecore_wl2: split of cnp_selection_data_ready and
...
dnd_selection_data_ready
before there was the case that both handlers are called even if just dnd
data arrived.
2016-07-11 11:02:52 +02:00
Marcel Hollerbach
c300678391
ecore_wl2: buffer reading of the data
...
Otherwise callbacks can go out even if the selection data is not ready
to read.
2016-07-11 11:02:52 +02:00
Mike Blumenkrantz
9d5caf00b6
wayland: implement session recovery
...
add support for reconnecting wayland applications if the compositor dies
disconnect -> destroy gl ctx + image textures -> block rendering ->
reconnect -> create gl ctx -> create image textures -> unblock rendering ->
sprinkle special seasoning on top -> just like ma used to make
#SamsungFeatures
@feature
2016-05-05 10:49:31 -04:00
Chris Michael
ebf26f2017
ecore-wl2: Formatting
...
Minor formatting fix. No functional changes
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-03 12:33:26 -04:00
Thiep Ha
aa0ace21d7
ecore wayland: add selection type
...
We have copy & paste and drag & drop selection types, but we cannot
distinguish between these two types when requesters receive data
from data ready event.
This patch adds a new enum to help selection requesters distinguish
between two selection types and have suitable actions for each type.
2016-05-03 17:13:47 +00:00
Mike Blumenkrantz
d36c931fac
ecore-wl2: more dnd v3 updates
...
ref d34b5958051c87fe491e358b24e9f25238fda10f
#gladthiswasabetaapi
2016-04-21 13:58:45 -04:00
Derek Foreman
f7cbb12fd4
ecore_wl2: Add API to get dmabuf protocol object
2016-04-19 15:11:09 -04:00
Mike Blumenkrantz
5292b3de05
ecore-wl2: redo Ecore_Wl2_Event_Window_Configure entirely
...
this is an event representing the "new" state of the surface after a
configure event. it must contain the exact states which could potentially
have changed in the configure in order to ensure synchronization between
csd states and window size.
ecore events for xdg-shell configures must be sent only upon receiving a
configure event since states are set by the compositor and not by the client
@fix
#hoorayforbeta
2016-04-07 14:19:25 -04:00
Mike Blumenkrantz
af1c7d3407
ecore-wl2: remove maximized/fullscreen/transient from window types enum
...
these aren't real window types and only complicate internals/api
#hoorayforbeta
2016-04-07 14:19:25 -04:00
Chris Michael
5499a53c75
ecore-wl2: API expose ecore_wl2_input_grab function
...
This input_grab function should have been exposed via EAPI for use in
enlightenment, but was missed before the push
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-01-07 11:57:07 -05:00
Chris Michael
67044ae214
ecore-wl2: Mark API as Beta before 1.17 gets released
...
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-01-06 12:16:33 -05:00
Stefan Schmidt
6451c174db
ecore_wl2: add since tag to all new symbols in 1.17 missing it
2016-01-06 15:08:13 +01:00
Derek Foreman
ddae80af1d
wayland: use wl_surface.damage_buffer if available
...
Summary:
wl_surface.damage_buffer() takes surface damage in buffer co-ordinates.
Right now since we don't use wayland's scaling, transforms, or viewports
it's exactly the same as wl_surface.damage(). In the future if we start
using those features it's much easier to do so with damage_buffer().
Reviewers: zmike, devilhorns
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D3457
2015-12-28 09:09:04 -05:00
Chris Michael
8c85a89303
ecore-wl2: Add new event for sync done
...
This removes the usage of ecore_main_loop_iterate inside of the
display_connect function. It creates a new event type for when display
sync is done, this was we can defer surface creation and EE showing
until the compositor has had a chance to synchronize globals. We need
this for Enlightenment so that it does not try to create error dialogs
too early and thus crash due to not having sync'd globals yet
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-11 11:24:32 -05:00
Mike Blumenkrantz
8fb4840479
ecore-wl2: add function for getting display from window
2015-12-05 13:05:15 -05:00
Chris Michael
f0342a5ffe
ecore-wl2: Add start of code to support wl_keyboards
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:05:49 -05:00
Chris Michael
ba10e3547c
ecore-wl2: Start on implementing support for multi-seat
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:05:01 -05:00
Chris Michael
14229e0709
ecore-wl2: Add missing @since for all existing doxygen
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:03:35 -05:00
Chris Michael
684429099e
ecore-wl2: Change name of ecore_wl2_window_class_name_set function
...
It makes more sense to have this function be called
ecore_wl2_window_class_set.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:03:35 -05:00
Chris Michael
93afb3ed07
ecore-wl2: Add function to get a windows rotation
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:03:35 -05:00
Chris Michael
0d7305ae95
ecore-wl2: Add doxygen for more ecore_wl2_window functions
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:03:35 -05:00
Chris Michael
d30e9c6f97
ecore-wl2: Add note about calling ecore_wl2_display_globals_get
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:03:35 -05:00
Chris Michael
8f338af511
ecore-wl2: Remove all code relating to custom window animators
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:03:35 -05:00
Chris Michael
652fa87169
ecore-wl2: Remove duplicate window_find API function
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
dbb862299b
ecore-wl2: Re-order window API function to be with window group
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
0272154007
ecore-wl2: Add doxygen group for Subsurface functions
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
9a871106db
ecore-wl2: Fix typo in doxy group definition for Dnd Group
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
57e19e1fd8
ecore-wl2: Re-order API functions for input to be located next to the
...
group definition
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
7fb55f5789
ecore-wl2: Add doxy group for output functions
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
24aa08ede7
ecore-wl2: Add API function to get the DPI of a given output
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
6d78355ccc
ecore-wl2: Add API function to return a wl_seat from an Ecore_Wl2_Input
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
3e1b71b3d8
ecore-wl2: Add API function to set opaque region of a subsurface
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
475ade8bf8
ecore-wl2: Add API function to set sync/desync on a subsurface
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
d50af2db70
ecore-wl2: Add API function to place a subsurface below a surface
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
44b2153a42
ecore-wl2: Add API function to place a subsurface above a surface
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
25505626ad
ecore-wl2: Add API function to get the position of a subsurface
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
0b8d2f1f24
ecore-wl2: Add API function to set the position of a subsurface
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
32bb1237c6
ecore-wl2: Add API function to return the wl_surface of a subsurface
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
ed8287bdba
ecore-wl2: Add API function to delete a subsurface
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
434fbd6fb9
ecore-wl2: Start on preliminary subsurface support
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
10efbbd416
ecore-wl2: Add subsurface structure type
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
76da2e3063
ecore-wl2: Add doxygen for ecore_wl2_window functions
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
d22b6c581c
ecore-wl2: Add support for input region setting for an Ecore_Wl2_Window
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
35710fa919
ecore-wl2: Add API function to return the registry of a display
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
206914aa32
ecore-wl2: Add API funtion declarations need for Elementary
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
63004b492c
ecore-wl2: Add a LAST member for enum of window type
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
1a38e1a9f4
ecore-wl2: Don't use bitfields for public structure
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
41f6e1f505
ecore-wl2: Add display to global event structure
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
961a5fa478
ecore-wl2: Add event type and structure for sending window configure
...
events
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
597426e606
ecore-wl2: Fix compiler warning
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
26db25b5ff
ecore-wl2: Add API function to clear a dnd selection
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
e44f85cc3c
ecore-wl2: Add API function to return if a dnd selection exists
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
00fd750d7d
ecore-wl2: Add API function to set a dnd selection
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
4559aa15a4
ecore-wl2: Add API function to determine if an input has a selection
...
owner
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
d1cc93f046
ecore-wl2: Add API function to end a dnd drag operation
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
9fdd4758fb
ecore-wl2: Add API function to get a dnd drag
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
b877b18980
ecore-wl2: Add API function to start a dnd operation
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
915d0653c3
ecore-wl2: Add API function to set dnd drag types
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
695b8cec9e
ecore-wl2: Add missing TODO for doxygen
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
ccb8061841
ecore-wl2: Add API function to return the Ecore_Wl2_Input from a given
...
window
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
6ad9dc0e10
ecore-wl2: Add API function to set the type of window
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
dfffabb224
ecore-wl2: Add API function to return surface id of a window
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
3fe735f0c1
ecore-wl2: Add API function to set a cursor for a window
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
a83ba427a9
ecore-wl2: Add event structure and event type for selection data ready
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
9e8b79b43f
ecore-wl2: Add remaining events and event structures for data source
...
(dnd)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
199d762e57
ecore-wl2: Add event structure for dnd end event
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00