Kenny Levinsen
1ff7945ba1
Switch from wlr_idle to wlr_idle_notify_v1
...
The latter implemented the KDE protocol which has been dropped.
2024-01-26 23:45:57 +01:00
Kenny Levinsen
b55e40ad9d
seat: New cursor/xcursor interface
2024-01-26 23:45:57 +01:00
Kenny Levinsen
4ea6a8b1a7
shell: Use new try_from surface getters
2024-01-26 23:45:57 +01:00
Kenny Levinsen
624355485a
Use new wlr_backend_autocreate signature
...
The session is now stored explicitly, with wlr_backend_get_session being
dropped.
2024-01-26 23:45:57 +01:00
Jonathan GUILLOT
2ab480910e
cage: add relative-pointer-unstable-v1 support
2023-11-10 14:38:28 +01:00
Jonathan GUILLOT
efbf7c035b
seat: move initial cursor center to dedicated function
2023-11-10 14:38:28 +01:00
Jonathan GUILLOT
7ec7e3df2b
seat: add missing touch_frame handler
...
wl_touch::frame() is expected to be sent to client to indicate end of
touch frame event and not sending it may cause issues.
For example, Qt applications using Qt Wayland platform plugin do not
consider touch events until this end of frame to be received.
2023-08-24 10:05:12 +02:00
ChemicalXandco
bd5b20e1fa
add wlr_virtual_keyboard_manager_v1 and wlr_virtual_pointer_manager_v1
2023-02-01 00:26:37 +01:00
Alexander Orzechowski
36c9c52d3f
Port 0.16 surface header includes
2022-12-17 21:56:03 +01:00
Alexander Orzechowski
32c44ddb5f
Port 0.16 scene changes
2022-12-17 21:56:03 +01:00
Alexander Orzechowski
47f5daba20
seat: Port 0.16 device changes
2022-12-17 21:56:03 +01:00
Jente Hidskes
d708a73aca
view: require non-NULL surface in view_from_wlr_surface
2022-01-14 14:59:13 +01:00
Jente Hidskes
ba9c245393
view: implement view_from_wlr_surface in terms of wlr_surface->data pointer
2022-01-14 14:59:13 +01:00
lunacb
de03250ca0
fixed typo
2021-12-21 21:56:56 +01:00
Simon Ser
d46e8a82dd
Use scene-graph for damage tracking
...
References: https://github.com/swaywm/wlroots/pull/3117
2021-12-21 21:53:28 +01:00
Simon Ser
128fa90ea1
Use scene-graph helpers for sub-surfaces
...
Delegate sub-surface handling to wlr_scene_surface_tree_create.
References: https://github.com/swaywm/wlroots/pull/3128
2021-12-21 21:53:28 +01:00
Simon Ser
fb3dc58237
Replace view_wlr_surface_at with scene-graph
2021-12-21 21:53:28 +01:00
Simon Ser
f544483340
Use the wlroots scene-graph API
...
References: https://github.com/swaywm/wlroots/pull/1966
2021-12-21 21:53:28 +01:00
Palanix
d1367b1c46
removed focus_changed logic
2021-09-06 16:09:14 +02:00
Palanix
0ba1c40aa6
fix drag
2021-09-06 16:09:14 +02:00
Simon Ser
5424a35aba
Damage drag icon when destroyed
...
This fixes the drag icon not disappearing when releasing the
pointer button.
Reproduction steps:
- Open gedit
- Drag some text around
- Release the pointer button
2021-08-09 20:53:24 +02:00
Simon Ser
cdb1cdf3b4
Don't manually parse XKB_* env vars
...
libxkbcommon will do it for us if we provide a NULL struct
xkb_rule_names.
2021-08-09 20:52:51 +02:00
Jan Beich
e6762725ed
seat: chase swaywm/wlroots@e06c9e43af
...
seat.c:453:58: error: incomplete definition of type 'struct wlr_event_touch_down'
wlr_cursor_absolute_to_layout_coords(seat->cursor, event->device, event->x, event->y, &lx, &ly);
~~~~~^
seat.c:450:9: note: forward declaration of 'struct wlr_event_touch_down'
struct wlr_event_touch_down *event = data;
^
Based on a56098a24e
2021-04-09 19:33:14 +02:00
Jan Beich
4a01da76f1
seat: chase swaywm/wlroots@7693f61d81
...
seat.c:263:56: error: use of undeclared identifier 'WLR_KEY_PRESSED'
if ((modifiers & WLR_MODIFIER_ALT) && event->state == WLR_KEY_PRESSED) {
^
Based on bb342ac5e6
2021-04-09 19:33:14 +02:00
Michael Weiss
7d37322906
seat.c: Make clangformat happy and simplify the control flow
...
This restores the original behaviour from 2cf40f7 , is easier to read,
and satisfies clangformat.
This also doesn't call wlr_idle_notify_activity anymore, which was
probably unintended.
2020-08-02 17:43:05 +02:00
Jan Tatje
79992f39f3
Add option to allow changing VT
...
Code that does the VT switch taken from sway.
2020-07-16 14:46:28 +02:00
Jente Hidskes
fc5564645e
seat: remove signals earlier in seat destroy handler ( #130 )
...
This fixes a bunch of invalid writes found with valgrind.
2020-02-27 20:39:15 +01:00
Jente Hidskes
9886efa112
seat: log around input device mapping ( #128 )
...
This should make it easier to troubleshoot why, for example, a touch
input device isn't mapped to a touch output device. See #126 .
2020-02-23 16:00:57 +01:00
project-repo
e96fccfa54
Implement support for wlr_keyboard_group ( #123 )
...
* Implement support for wlr_keyboard_group
* Cast pointers to void type when passing to wlr_log
* Fix bracket style
* Improve style
* Remove unnecessary function
* Prefer defined variable for brevity
* Remove unnecessary pointer printing
* Ameliorate style
* Remove duplicate functionality
* Set group repeat info
* Ameliorate style
* Fix bug introduced through renaming
* Ameliorate style in seat.h
* Remove cg_keyboard in favour of cg_keyboard_group
* Remove unused signalling
* Apply clang-format
* Fix ordering of commands
* Remove unnecessary field in cg_keyboard_group
2020-02-21 21:19:12 +01:00
Jente Hidskes
6d0714bfa3
Begrudgingly format wl_list_* macros with a space before parameter list
...
I can't seem to configure clang-format to remove this space...
2020-02-18 21:20:23 +01:00
Jente Hidskes
6cbc202662
Apply clang-format
2020-02-18 21:20:23 +01:00
Jente Hidskes
42782bda1d
server: remove backend pointer
2020-02-08 16:49:12 +01:00
Jente Hidskes
2db815aa23
Refactor surface damaging and rendering code
...
This is based on code from Sway, which is also MIT licensed hence
compatible. This makes the surface damaging and rendering code easier to
follow and makes it easier to import future changes to Sway as well.
2020-01-11 17:07:33 +01:00
Jente Hidskes
651d579c30
seat: be explicit about output- and layout coordinates
...
This commit follows up on 95b7782c72
2020-01-05 13:16:01 +01:00
Jente Hidskes
95b7782c72
Be explicit about output- and layout coordinates
2019-12-29 16:07:14 +01:00
Kenny Levinsen
4e832c6aaf
Revert "Set title on outputs that the focused surface is intersecting with"
...
This reverts commit 915c6df244 .
2019-12-26 17:14:57 +01:00
Kenny Levinsen
bcd0086f13
Set title on outputs that the focused surface is intersecting with
2019-12-26 17:14:57 +01:00
Kenny Levinsen
06ada15661
Support multiple outputs
...
Outputs are arranged in a horizontal layout in the order they are
created in by wlroots. Maximized xdg_shell views will span all outputs,
like the global fullscreen mode in sway.
Fixes #87
2019-12-26 17:14:57 +01:00
Jente Hidskes
0aeba8085c
Replace all wayland-server.h includes with wayland-server-core.h
...
The documentation for `wayland-server.h` says:
> Use of this header file is discouraged. Prefer including
> wayland-server-core.h instead, which does not include the server protocol
> header and as such only defines the library PI, excluding the deprecated API
> below.
See also
ca45f4490c (diff-b57e10fe0774258a6d21b22077001cff)
2019-12-20 17:16:53 +01:00
Jente Hidskes
1de6054d7e
seat: use XKB_* env vars for configuring keyboard devices
...
Fixes #66
2019-05-03 21:32:58 +02:00
Tristan Daniel
9e6a5ad44f
Cage: implement output transform
...
This commit adds the command line switch -r, which rotates the output 90
degrees clockwise and can be specified up to three times.
2019-04-14 08:31:33 +02:00
Drew DeVault
da62449c27
Update for wlroots 0.4
2019-02-28 19:24:43 +01:00
Jente Hidskes
707cb2cdfc
seat: fix memory leak when explicitly destroying the seat
2019-02-21 11:35:43 +01:00
Jente Hidskes
76e8be14d9
seat: listen on wlr_seat.events.request_set_selection and wlr_seat.events.request_set_primary_selection
...
This is now required with wlroots 0.3, see https://github.com/swaywm/wlroots/releases/tag/0.3
and https://github.com/swaywm/wlroots/pull/1402
Fixes #42 .
2019-02-16 19:09:00 +01:00
Jente Hidskes
202f74f21a
seat: listen on the wlr_cursor.frame event
...
This is now required with wlroots 0.3, see https://github.com/swaywm/wlroots/releases/tag/0.3
and https://github.com/swaywm/wlroots/pull/1503 .
2019-02-16 19:09:00 +01:00
Jente Hidskes
9d825d6dc7
Move set_window_title to output
2019-02-16 00:56:09 +01:00
Jente Hidskes
e981cb8a1c
Implement damage tracking
...
Fixes #5 .
2019-02-16 00:35:17 +01:00
Jente Hidskes
f0eb115bda
seat: remove cg_ prefix from cg_seat_destroy
2019-02-02 17:13:10 +01:00
Jente Hidskes
fd5175cbf8
seat: remove cg_ prefix
2019-01-31 14:47:11 +01:00
Jente Hidskes
5c403edc0b
view: replace view_has_children with view_is_transient_for
...
This is a much cleaner implementation but allows us to do the same
things.
2019-01-31 14:47:11 +01:00