aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-04-22seat: Don't finish wlr_keyboard if server was never startedAlexander Orzechowski
2022-04-17Revert "Copy xcb_icccm structs into wlroots"John Lindgren
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 12b9b1a4bdf00742cc510c2329c7a66c649b3ab0.
2022-04-16types/seat/wlr_seat.c: fix focused_client being null after seat_client ↵Ferdinand Bachmann
recreation
2022-04-16types/wlr_pointer_gestures_v1.c: get client from seat client instead of resourceFerdinand Bachmann
2022-04-15types/wlr_pointer_gestures_v1: null-check both focused_surface and ↵Ferdinand Bachmann
focused_client (fixes #3385)
2022-04-14scene/output-layout: fix scene destroy handlerKirill Primak
2022-04-13xdg-toplevel: don't schedule configures on state requestsKirill Primak
2022-04-13xdg-foreign-v2: treat unmapped parents as NULLKirill Primak
2022-04-13xdg-foreign-v1: treat unmapped parents as NULLKirill Primak
2022-04-13xdg-toplevel: treat unmapped parents as NULLKirill Primak
2022-04-03meson: use target_machine instead of host_machineKirill Chibisov
2022-04-01tinywl: remove outdated non-feature from README.mdKirill Primak
Now that tinywl uses wlr_scene under the hood, damage tracking comes for free.
2022-04-01tinywl: don't generate xdg-shell-protocol.cKirill Primak
It's unused, and wlroots-based compositors don't need to do this anyway.
2022-03-28meson: soversion arg should be stringKenny Levinsen
muon, a meson implementation in C, is more strict with its types and revealed this discrepancy between meson behavior and documentation.
2022-03-26xdg-activation: Deduplicate token creation codeGuido Günther
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")
2022-03-23seat: take wlr_keyboard in wlr_seat_set_keyboard()Leonardo Hernández Hernández
Signed-off-by: Leonardo Hernández Hernández <leohdz172@protonmail.com>
2022-03-23layer-shell: Make wlr_layer_surface_v1_from_resource publicGuido Günther
This allows compositors to leverage the `wl_instance_of` based type check.
2022-03-17types/wlr_touch: uniformize events nameSimon Zeni
2022-03-17types/wlr_tablet_tool: uniformize events nameSimon Zeni
2022-03-17types/wlr_tablet_pad: uniformize events nameSimon Zeni
2022-03-17types/wlr_switch: uniformize events nameSimon Zeni
2022-03-17types/wlr_keyboard: uniformize events nameSimon Zeni
2022-03-17types/wlr_pointer: uniformize events nameSimon Zeni
2022-03-17types/wlr_input_device: move width_mm and height_mm fields to wlr_tablet and ↵Simon Zeni
wlr_touch
2022-03-17types/wlr_input_device: move output_name field to wlr_pointer and wlr_touchSimon Zeni
2022-03-17backend/wayland: remove wl_seat_listener from public APISimon Zeni
2022-03-17backend/wayland: remove wlr_wl_input_deviceSimon Zeni
2022-03-17backend/wayland/tablet_v2: give wlr_tablet_* ownership to wlr_wl_seatSimon Zeni
2022-03-17backend/wayland: give wlr_touch ownership to wlr_wl_seatSimon Zeni
2022-03-17backend/wayland: drop wlr_switch supportSimon Zeni
2022-03-17backend/wayland: give wlr_pointer ownership to wlr_wl_seatSimon Zeni
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.
2022-03-17backend/wayland: give wlr_keyboard ownership to wlr_wl_seatSimon Zeni
2022-03-17tinywl: init cursor_modeSimon Zeni
valgrind complains on a use-before-init for the cursor mode.
2022-03-16types/wlr_output: Handle subpixel hints through output commitsAlexander Orzechowski
2022-03-16Revert "scene: try to import buffers as textures before rendering"Simon Ser
This reverts commit 3db1bcbe641b407b9f5c9e5d0a012b45aa2c6cb7. Since [1], importing buffers as textures before wlr_renderer_begin isn't necessary anymore. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3464
2022-03-15xdg-positioner: fix sliding regressionKirill Primak
This commit fixes a regression introduced in 511f137f8fb245e4877d83a0846294091373eba1 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.
2022-03-14Free drmDevice in get_egl_device_from_drm_fd()Dean
2022-03-13Pass O_CLOEXEC to drmModeCreateLease callsSamuel Čavoj
The lease_fd is currently being leaked to child processes Link: https://github.com/swaywm/sway/issues/4286#issuecomment-1065987957
2022-03-11types/wlr_virtual_pointer_v1: remove destroy eventSimon Zeni
The destroy event from the pointer base wlr_input_device must be used
2022-03-11types/wlr_virtual_keyboard_v1: remove destroy eventSimon Zeni
The destroy event from the keyboard base wlr_input_device must be used
2022-03-11types/wlr_keyboard: remove destroy eventSimon Zeni
The destroy event from the base wlr_input_device must be used
2022-03-11types/wlr_tablet_tool: remove name ambiguityDavid96
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
2022-03-11wlr_output_layout_contains_point: handle outputs that aren't in the layoutSebastian Krzyszkowiak
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.
2022-03-08xcursor: support XDG Base Directory SpecificationMoon Sungjoon
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
2022-03-08wlr_output_damage: Don't schedule a new frame if damage region does not ↵Alexander Orzechowski
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.
2022-03-08wlr_output_damage: Use wlr_output_damage_add for wlr_output_damage_add_boxAlexander Orzechowski
2022-03-08wlr_switch: remove WLR_SWITCH_STATE_TOGGLEIsaac Freund
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.
2022-03-07types/wlr_input_device: move init and finish function to private APISimon Zeni
2022-03-07types/wlr_input_device: remove wlr_input_device_destroySimon Zeni
2022-03-07tinywl: destroy keyboard on wlr_input_device eventSimon Zeni