Derek Foreman
943f2df006
ecore_drm/ecore_wl2: logging: remove errant usage of %m
...
Summary:
printf %m stringifies and prints errno. I've tried to remove its use
anywhere that the immediately preceding function might not set errno
or is a complicated function for which knowing errno doesn't really
give any useful information.
I've left a few of the drmMode calls because they're just wrappers
around ioctl, which legitimately sets errno.
@fix
Reviewers: zmike, devilhorns
Reviewed By: zmike, devilhorns
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D3572
2016-01-14 13:06:02 -05:00
Marcel Hollerbach
63a410667a
ecore_wl2: fix key down event called to often
...
if many events are coming in, a release event can be skipped. if this happens
the timer continues with the new keycode. so if a new key pressed event
enter checks for the old timer and delete the timer if there is one.
If the timer kicks in and emits additional key down events dont call the
callback which gets called by wl, and emit the signal directly.
2016-01-13 19:40:44 +01: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
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
b566360de2
ecore-wl2: Always create cursor surface for pointer
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:07:45 -05:00
Chris Michael
2e00a5ebbd
ecore-wl2: Remove unnecessary use of MIN macro
...
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
9aaada21c3
ecore-wl2: Fix issue of not unsetting move mouse pointer
...
Summary: When we finish moving a window, previously the mouse cursor
would never get unset from the hand cursor. This is due to the way
that grabs work in wayland, and not ever getting an event notification
for the move being completed. This patch works around that issue
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:03:35 -05:00
Chris Michael
e839035bfa
ecore-wl2: Fix formatting
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:03:35 -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
68527379e2
ecore-wl2: Don't reset window->input on keyboard or pointer leave events
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
b7804b6877
ecore-wl2: Don't check twice if a key repeats and also fix issue of
...
repeating keys getting delayed
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
89c973eba8
ecore-wl2: Adjust keyboard repeat delay and rate
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Derek Foreman
497b9c045e
ecore-wl2: cache the registry
...
wl_get_registry() returns a new object that we must destroy, so
we should cache one at connect and never call that again.
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
c5dba8cd32
ecore-wl2: Free internal mouse down info when we delete an input
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
f3e5800d58
ecore-wl2: Add API function to issue an ungrab on an input
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
a084891013
ecore-wl2: Cleanup dnd drag and selection sources when we delete an
...
input
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
84a01216e7
ecore-wl2: Provide internal function to stop any cursor update timers
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
324a7e545a
ecore-wl2: Update input serial when we get a mouse button event
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
4b0aaca962
ecore-wl2: Set window input on pointer enter/leave events
...
Summary: This is so that we can still change mouse cursor (to indicate resize)
even when the window does not have focus
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
9cc1ba045c
ecore-wl2: Fix issue of never getting keyboard focus
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
7b383e267d
ecore-wl2: Add support for setting cursor images to input code
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
2758d6fcba
ecore-wl2: Add event and structure for dnd motion events
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
05856a0ebf
ecore-wl2: Add calls to dnd functions for drag listener
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
dfdac191ff
ecore-wl2: Add TODO notes for dnd
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
d2816fa45f
ecore-wl2: Assign an input to a window when the window gets focus
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
df670ae859
ecore-wl2: Finish up touch support. Record touch motion coordinates
...
into input->pointer.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
28fafc0ea7
ecore-wl2: Add support for double/triple click in mouse events
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
08c804f5bb
ecore-wl2: Send key press/release events when we get wayland event
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
7918f40fcc
ecore-wl2: Raise focus in/out events when we get wayland events for
...
keyboard enter/leave
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
5254b1a327
ecore-wl2: Call input ungrab when window operations occur
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
6d3e8a8558
ecore-wl2: Finish send ecore events for any wayland touch related events
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
68b36dfde3
ecore-wl2: Send mouse up event when we ungrab input
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
16864aa2c4
ecore-wl2: Send mouse button down/up events when we get a wayland
...
pointer button event
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
32838d1db4
ecore-wl2: Add internal functions for sending mouse button down/up
...
events
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
8360fcaa58
ecore-wl2: Set display serial during keyboard events
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
c0e03359e5
ecore-wl2: Add code to send mouse wheel events
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
ed7429f62d
ecore-wl2: Issue input grab/ungrab during pointer button events
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
8a2b8ed76a
ecore-wl2: Add code to send mouse move events
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
52996b1cf4
ecore-wl2: Add functions to send mouse in/out events and call them
...
during pointer enter/leave
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
22c069ef82
ecore-wl2: Add internal input functions to initiate/release a grab
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
31b014de6b
ecore-wl2: Add prototype functions to support data listener
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
7eabcd955e
ecore-wl2: Add placeholders for touch listener functions
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
6062fa4f68
ecore-wl2: Add initial support for keyboard events
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
debc8c5aba
ecore-wl2: Add placeholders for functions of the keyboard listener
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
df1032676a
ecore-wl2: Add TODO note for handling mouse wheel event
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
4731bb6eed
ecore-wl2: Add start of code for pointer button event
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
1f4b386664
ecore-wl2: Start on code for pointer motion event
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
bb0c94d04a
ecore-wl2: Start on code for pointer leave event
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00
Chris Michael
1fd5a0f9b9
ecore-wl2: Destroy cursor theme when input is destroyed
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 12:02:40 -05:00