Antonin Décimo
95d3529edf
xcursor: check that XDG base directory path is absolute
...
The spec reads:
> All paths set in these environment variables must be absolute. If an
> implementation encounters a relative path in any of these variables it should
> consider the path invalid and ignore it.
and
> If $XDG_DATA_HOME is either not set or empty, a default equal to
> $HOME/.local/share should be used.
Testing that the path is absolute also entails that is is non-empty.
3 years ago
zccrs
48c811ffb6
render/vulkan: fix undefined reference to wlr_texture_is_vk
...
Added the implement of wlr_texture_is_vk.
Fixes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3419
3 years ago
Kirill Primak
bc4350c976
backend/wayland: reset active pointer on destroy
3 years ago
Kirill Primak
ec2af17674
CONTRIBUTING.md: update init/finish description
3 years ago
Simon Ser
a1e1e9aba8
Revert "backend/wayland: zero out finished input devices"
...
This reverts commit 03c88b07ba
.
init functions now zero out the structs.
3 years ago
Simon Ser
6c350799b2
Zero-initialize structs in init functions
...
Ensures there is no field left to its previous undefined value after
calling an init function.
3 years ago
Simon Ser
54653b5d95
util/addon: fix public include
...
Everything in wlr/ is public and should be included via angle-bracket
include directives.
3 years ago
tiosgz
c091a07589
CONTRIBUTING.md: make forks public to let the CI run
...
This little note helps first-time contributors who are in doubt regarding the
repo visibility.
3 years ago
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