Simon Zeni
19f7e5d2b4
backend/x11: remove wlr_input_device_impl
3 years ago
Simon Zeni
edfb332b24
types/wlr_touch: add base wlr_input_device
...
wlr_touch now owns its wlr_input_device. It will be initialized when the
tablet tool is initialized, and finished when the touch is destroyed.
3 years ago
Simon Zeni
d5480efc7a
types/wlr_pointer: add base wlr_input_device
...
wlr_pointer owns its wlr_input_device. It will be initialized when the
pointer is initialized, and finished when the pointer is destroyed.
3 years ago
Simon Zeni
a1978b1299
types/wlr_keyboard: add base wlr_input_device
...
wlr_keyboard owns its base wlr_input_device. It will be initialized when the
keyboard is initialized, and finished when the keyboard is destroyed.
3 years ago
Simon Ser
cbedbd0fc0
backend/x11: fix code style in get_touchpoint_from_x11_touch_id
3 years ago
Simon Ser
c1902cdb3f
backend/x11: send touch frame events
3 years ago
tomKPZ
7c9b61b18c
Fix stuck keys on X11 backend
4 years ago
Ilia Mirkin
966e653935
backend/x11: set a blank cursor rather than hiding globally
...
This actually simplifies the logic since we no longer have to wait for
enter/leave events, and also improves the UX when e.g. handling a crash
with gdb attached.
See #2659
4 years ago
Isaac Freund
7693f61d81
Replace wlr_key_state with wl_keyboard_key_state
...
There's no reason to have duplicate enums
4 years ago
Sebastian Krzyszkowiak
415267ac13
backends/x11: Touch support
...
Closes #1749
5 years ago
Dorota Czaplejewicz
5027b23dc2
x11: Send a frame event on the pointer after button events
...
Without the immediate frame event, the button event would not be processed in time: https://source.puri.sm/Librem5/phoc/issues/
6 years ago
emersion
5de26ad8ed
pointer: add a frame event
...
Frame events group logically connected pointer events. It makes sense to make
the backend responsible for sending frame events, since once the events are
split (ie. once the frame events are stripped) it's not easy to figure out
which events belongs to which frame again.
This is also how Weston handles frame events.
Fixes https://github.com/swaywm/wlroots/issues/1468
6 years ago
Jan Beich
f80d174e8b
Simplify evdev includes on FreeBSD by relying on up-to-date package
...
As evdev-proto is installed by CI some files have been missed:
../examples/pointer-constraints.c:2:10: fatal error: 'linux/input-event-codes.h' file not found
#include <linux/input-event-codes.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../examples/relative-pointer-unstable-v1.c:5:10: fatal error: 'linux/input-event-codes.h' file not found
#include <linux/input-event-codes.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
6 years ago
Scott Anderson
d3ee69f76b
backend/x11: Hide cursor with Xfixes
6 years ago
Scott Anderson
70ae76304e
backend/x11: Remove old input functions
...
This also allows us to remove xcb-xkb, since Xinput will now give us the
appropriate XKB modifiers with each event.
6 years ago
Scott Anderson
d89e868cc9
backend/x11: Add new Xinput events
6 years ago
Scott Anderson
ab2c57984b
backend/x11: Make header order consistent
6 years ago
Scott Anderson
51a283cbe4
backend/x11: Rename xcb_conn to xcb
...
When the Xlib connection is removed, this _conn suffix is going to be
pointless. I'm removing this preemtively for that.
6 years ago
emersion
51bfdd620e
Use #if instead of #ifdef for wlroots config data
...
This prevents some annoying issues when e.g. not including wlr/config.h or
making a typo in the guard name.
6 years ago
Drew DeVault
4b096fc114
Revert "Merge pull request #1153 from emersion/include-config"
...
This reverts commit ef0a6ea4d2
, reversing
changes made to 8d03bc9178
.
6 years ago
emersion
41094a7df5
Always include config.h
6 years ago
emersion
0b58579564
Add support for discrete axis values
7 years ago
Guido Günther
6f01c12b40
backend/x11: don't transform pointer events
...
We do this in a backend independent way in wlr_cursor now.
7 years ago
emersion
178ac8bffe
backend/{wayland,x11}: fix pointer coords for transformed outputs
7 years ago
emersion
62d7337d00
backend/x11: add one pointer per output
7 years ago
emersion
f8e0a03451
backend/x11: correctly destroy input devices
7 years ago
emersion
71ca45e2c0
Make sure we don't use others' prefixes
7 years ago
Uli Schlachter
98f8ec6a08
x11_handle_input_event: Remove return value
...
handle_x11_event() and x11_handle_input_event() react to different kinds
of events, so it does not make much of a difference if
x11_handle_input_event() signals if it handled an event or not.
Signed-off-by: Uli Schlachter <psychon@znc.in>
7 years ago
emersion
9609985f29
backend/x11: fix cursor position when receiving configure event
7 years ago
emersion
60f07ee321
backend/x11: fix WLR_HAS_XCB_XKB always undefined
7 years ago
emersion
aa6ae710f7
backend/x11: fix input events
7 years ago
emersion
d4f7ced6e2
backend/x11: refactor, prepare support for multiple outputs
7 years ago