zsugabubus
91da4c557b
xwayland: do not double free server on destroy
3 years ago
Kirill Primak
03c88b07ba
backend/wayland: zero out finished input devices
3 years ago
Kirill Primak
a43d105a50
backend/wayland/pointer: fix indentation
3 years ago
Alexander Orzechowski
2ce0305483
seat: Don't finish wlr_keyboard if server was never started
3 years ago
John Lindgren
640f3b9f21
Revert "Copy xcb_icccm structs into wlroots"
...
The original commit introduced a bug by transposing the order of
some of the fields in xcb_size_hints_t. Since XCB ICCCM support is
required now, we can just eliminate the duplicate structs.
With minor changes:
- Remove #ifdef HAS_XCB_ICCCM guards
- Fix #includes
- Fix references to local size_hints struct
This reverts commit 12b9b1a4bd
.
3 years ago
Ferdinand Bachmann
d3a2ea33e5
types/seat/wlr_seat.c: fix focused_client being null after seat_client recreation
3 years ago
Ferdinand Bachmann
2d4e813530
types/wlr_pointer_gestures_v1.c: get client from seat client instead of resource
3 years ago
Ferdinand Bachmann
eedb9df531
types/wlr_pointer_gestures_v1: null-check both focused_surface and focused_client
...
(fixes #3385 )
3 years ago
Kirill Primak
4ba8458255
scene/output-layout: fix scene destroy handler
3 years ago
Kirill Primak
dec2565f2b
xdg-toplevel: don't schedule configures on state requests
3 years ago
Kirill Primak
04aa44b4df
xdg-foreign-v2: treat unmapped parents as NULL
3 years ago
Kirill Primak
dac040f87f
xdg-foreign-v1: treat unmapped parents as NULL
3 years ago
Kirill Primak
bf3f60ff73
xdg-toplevel: treat unmapped parents as NULL
3 years ago
Kirill Chibisov
2e14bed9f7
meson: use target_machine instead of host_machine
3 years ago
Kirill Primak
578e5614d4
tinywl: remove outdated non-feature from README.md
...
Now that tinywl uses wlr_scene under the hood, damage tracking comes for
free.
3 years ago
Kirill Primak
62fbf3f4ba
tinywl: don't generate xdg-shell-protocol.c
...
It's unused, and wlroots-based compositors don't need to do this anyway.
3 years ago
Kenny Levinsen
bb32349c97
meson: soversion arg should be string
...
muon, a meson implementation in C, is more strict with its types and
revealed this discrepancy between meson behavior and documentation.
3 years ago
Guido Günther
dd03d839ab
xdg-activation: Deduplicate token creation code
...
There were three places initializing a token:
- wlr_xdg_activation_v1_add_token
- wlr_xdg_activation_token_v1_create
- activation_handle_get_activation_token
The initialization of the token.destroy was missing in the first one. To
prevent these functions from getting out of sync move the token creation
into a common function.
Fixes 4c59f7d4
("xdg-activation: Allow to submit tokens")
3 years ago
Leonardo Hernández Hernández
4519117a68
seat: take wlr_keyboard in wlr_seat_set_keyboard()
...
Signed-off-by: Leonardo Hernández Hernández <leohdz172@protonmail.com>
3 years ago
Guido Günther
4cc2a03620
layer-shell: Make wlr_layer_surface_v1_from_resource public
...
This allows compositors to leverage the `wl_instance_of` based type
check.
3 years ago
Simon Zeni
aaf787ee56
types/wlr_touch: uniformize events name
3 years ago
Simon Zeni
e732c5c895
types/wlr_tablet_tool: uniformize events name
3 years ago
Simon Zeni
d1f543a9d8
types/wlr_tablet_pad: uniformize events name
3 years ago
Simon Zeni
13d7fa2f03
types/wlr_switch: uniformize events name
3 years ago
Simon Zeni
9a17200446
types/wlr_keyboard: uniformize events name
3 years ago
Simon Zeni
bd6c000d14
types/wlr_pointer: uniformize events name
3 years ago
Simon Zeni
96ccc50c57
types/wlr_input_device: move width_mm and height_mm fields to wlr_tablet and wlr_touch
3 years ago
Simon Zeni
a92e5f8d46
types/wlr_input_device: move output_name field to wlr_pointer and wlr_touch
3 years ago
Simon Zeni
2001441a37
backend/wayland: remove wl_seat_listener from public API
3 years ago
Simon Zeni
b7e9ad7989
backend/wayland: remove wlr_wl_input_device
3 years ago
Simon Zeni
56f7c000b5
backend/wayland/tablet_v2: give wlr_tablet_* ownership to wlr_wl_seat
3 years ago
Simon Zeni
d3fb44314c
backend/wayland: give wlr_touch ownership to wlr_wl_seat
3 years ago
Simon Zeni
e723dd928b
backend/wayland: drop wlr_switch support
3 years ago
Simon Zeni
be8527bd36
backend/wayland: give wlr_pointer ownership to wlr_wl_seat
...
All the code logic related to the pointer has been moved to its own file.
The seat is responsible for the lifetime of its wlr_wl_pointer(s), and assigning
them to the relevant wlr_wl_output. The wlr_wl_pointer becomes a simple helper
to manager the wlr_pointer associated to the seat's wl_pointer and its lifetime.
3 years ago
Simon Zeni
f9b6aa3079
backend/wayland: give wlr_keyboard ownership to wlr_wl_seat
3 years ago
Simon Zeni
64fe6ab300
tinywl: init cursor_mode
...
valgrind complains on a use-before-init for the cursor mode.
3 years ago
Alexander Orzechowski
74381f3bc3
types/wlr_output: Handle subpixel hints through output commits
3 years ago
Simon Ser
68f2f8cf92
Revert "scene: try to import buffers as textures before rendering"
...
This reverts commit 3db1bcbe64
.
Since [1], importing buffers as textures before wlr_renderer_begin isn't
necessary anymore.
[1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3464
3 years ago
Kirill Primak
2d623724c3
xdg-positioner: fix sliding regression
...
This commit fixes a regression introduced in
511f137f8f
where GTK tooltips wouldn't be
unconstrained due to no gravity on x axis being set, in which case the
behavior is ambiguous, by sliding to the right/bottom.
3 years ago
Dean
104060fec5
Free drmDevice in get_egl_device_from_drm_fd()
3 years ago
Samuel Čavoj
5c17452ae0
Pass O_CLOEXEC to drmModeCreateLease calls
...
The lease_fd is currently being leaked to child processes
Link: https://github.com/swaywm/sway/issues/4286#issuecomment-1065987957
3 years ago
Simon Zeni
4c8ecfcd4a
types/wlr_virtual_pointer_v1: remove destroy event
...
The destroy event from the pointer base wlr_input_device must be used
3 years ago
Simon Zeni
45c8771735
types/wlr_virtual_keyboard_v1: remove destroy event
...
The destroy event from the keyboard base wlr_input_device must be used
3 years ago
Simon Zeni
eae8952e17
types/wlr_keyboard: remove destroy event
...
The destroy event from the base wlr_input_device must be used
3 years ago
David96
7a2c96dcbd
types/wlr_tablet_tool: remove name ambiguity
...
It wasn't clear in the backend whether to use name or base.name, change
it so base.name has to be used.
Fixes https://github.com/swaywm/sway/issues/6884
3 years ago
Sebastian Krzyszkowiak
13fcdba75c
wlr_output_layout_contains_point: handle outputs that aren't in the layout
...
Instead of crashing, return `false` when the specified output isn't part
of the layout, as we can be sure that it doesn't contain the specified
point.
3 years ago
Moon Sungjoon
2dd121235e
xcursor: support XDG Base Directory Specification
...
This patch adds ~/.local/share/icons to the search path, so user-specific
themes can be loaded through the API provided by libwayland-cursor.
Use this PR as reference:
https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/112
3 years ago
Alexander Orzechowski
f330759ba4
wlr_output_damage: Don't schedule a new frame if damage region does not intersect with output
...
This fixed adaptive sync issues with wlr_scene. Scenes don't check
if the damage region intersects with an output when calling
wlr_output_damage_add.
This is especially important for multi output.
3 years ago
Alexander Orzechowski
fbd4d40318
wlr_output_damage: Use wlr_output_damage_add for wlr_output_damage_add_box
3 years ago
Isaac Freund
4792446ee8
wlr_switch: remove WLR_SWITCH_STATE_TOGGLE
...
This was originally added in 810c7b7
for use in rootston's input config
handling. It has never actually been part of the wlroots API and
shouldn't exist.
3 years ago