aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-06-03subcompositor: consider mapping on parent mapKirill Primak
Fixes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3654
2023-06-03virtual-keyboard: Handle inert seatsVäinö Mäkelä
2023-06-03virtual-pointer: Handle inert seatsVäinö Mäkelä
Inert seats are handled like inert outputs, so they work as if the wanted seat was NULL. The seat argument is only a suggestion, so this is okay.
2023-06-03xdg-popup: Handle inert seatsVäinö Mäkelä
According to the protocol text, the popup will be immediately dismissed when the grab is rejected. Because the grab can't be executed with a destroyed seat, the popup is dismissed when one is provided.
2023-06-03text-input: Handle inert seatsVäinö Mäkelä
2023-06-03primary-selection: Handle inert seatsVäinö Mäkelä
2023-06-03keyboard-shortcuts-inhibit: Handle inert seatsVäinö Mäkelä
2023-06-03input-method: Handle inert seatsVäinö Mäkelä
2023-06-03wlr_idle: Handle inert seatsVäinö Mäkelä
2023-06-03tablet: Handle inert seatsVäinö Mäkelä
2023-06-03data-control: Handle inert seatsVäinö Mäkelä
2023-06-03data-device: Handle inert seatsVäinö Mäkelä
2023-06-03seat: Allow binding to inert seatsVäinö Mäkelä
If a seat is destroyed while a client is trying to bind it, wlroots needs to create an inert seat resource instead of crashing.
2023-06-02output/cursor: fix scale and transformSimon Ser
Many issues here: - wlr_output_cursor_set_buffer() takes a buffer already scaled for the output, not a buffer with scale=1. - wlr_output_cursor.{width,height,hotspot_x,hotspot_y} are in output buffer coordinates. - render_cursor_buffer() had hardcoded no-ops for scale and transform, instead of using the cursor surface's. Fixes: b64e7e88bfb8 ("output: add output_cursor_set_texture()")
2023-06-02cursor: fix wl_pointer.set_cursor hotspot updatesSimon Ser
A client might update the cursor with the same wl_surface as before, but with a different hotspot. Don't ignore such updates. Fixes: 9c9e3f626350 ("cursor: ignore wlr_cursor_set_surface() with same surface")
2023-06-02session-lock: fix buffer checkKirill Primak
If the first commit has no buffer, the unmap hook won't catch it. Check in the commit hook instead.
2023-06-02session-lock: remove unused wlr_session_lock_surface_v1.events.mapKirill Primak
2023-06-02xwm: check for a buffer before mappingKirill Primak
2023-06-02compositor: remove wlr_surface_role.precommitKirill Primak
It was previously used to handle unmapping properly but is obsolete now.
2023-06-02xwm: use unified map logicKirill Primak
2023-06-02drag: use unified map logicKirill Primak
2023-06-02input-method: use unified map logicKirill Primak
2023-06-02session-lock: use unified map logicKirill Primak
2023-06-02layer-shell: use unified map logicKirill Primak
2023-06-02xdg-shell: use unified map logicKirill Primak
2023-06-02subcompositor: use unified map logicKirill Primak
2023-06-02compositor: introduce unified map logicKirill Primak
2023-06-02cursor: unset wlr_output_cursor.texture on surface destroySimon Ser
When the surface is destroyed, its current wlr_texture is about to get destroyed as well. Reset wlr_output_cursor.texture to prevent use-after-free. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3652
2023-06-02cursor: ignore wlr_cursor_set_surface() with same surfaceSimon Ser
Avoids damaging the output and rendering the cursor again if it hasn't changed.
2023-06-02xwm: introduce associate/dissociate eventsKirill Primak
We'll soon introduce a unified wlr_surface map event. Up until now, compositors have been using wlr_xwayland_surface's map event to setup various wlr_surface related listeners (e.g. commit). This will no longer be possible when that event is moved over to wlr_surface. Introduce new events where the compositor can add/remove wlr_surface event listeners.
2023-06-02Revert "xwm: emit new_surface/destroy on associate/dissociate"Kirill Primak
Firing new_surface when a wlr_surface is associated to the X11 window is too late: the X11 client might've sent configure events before that. This reverts commit 039cca8a51ed0783d45fb7a5215e9ae83e4e02e2. Fixes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3606
2023-06-01render/vulkan: improve error handling in vulkan_begin_render_pass()Simon Ser
Release the command buffer if we end up not submitting it.
2023-06-01render/vulkan: improve error handling in render_pass_submit()Simon Ser
Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3644
2023-05-31backend/drm: introduce wlr_drm_mode_get_info()Simon Ser
This allows compositors to get back the raw drmModeModeInfo and look at DRM-specific fields and flags.
2023-05-31render/vulkan: handle vulkan_record_stage_cb() failuresSimon Ser
2023-05-31backend/drm: move forward decl up for drmModeModeInfoSimon Ser
This allows doc generators to properly associate the doc comment with the function instead of the typedef.
2023-05-30output/cursor: use new rendering APISimon Ser
2023-05-30examples: convert to new rendering APISimon Ser
Left out multi-pointer (will be removed) and quads (requires arbitrary rotation).
2023-05-30backend/drm: use new rendering APISimon Ser
2023-05-30output: add wlr_output_begin_render_pass()Simon Ser
2023-05-30wlr_scene: Introduce wlr_scene_buffer_set_opacityAlexander Orzechowski
2023-05-30wlr_scene: Make scene_rect_from_node publicAlexander Orzechowski
This is in an effort to be more consistent with both already public getters: wlr_scene_buffer_from_node and wlr_scene_tree_from_node
2023-05-30wlr_scene: Make scene_tree_from_node publicAlexander Orzechowski
This is to allow for compositors that want to be more implicit about how their scene is organized. Such a compositor may want to walk up at a certain scene node to find something such as a surface to focus on.
2023-05-30wlr_scene: Add documentation to wlr_scene_buffer_from_nodeAlexander Orzechowski
2023-05-30render/vulkan: implement render pass APISimon Ser
2023-05-28renderer/gles2: Implement render pass interfaceAlexander Orzechowski
2023-05-28renderer/gles2: Compute texture coordinates based off of vertex positionsAlexander Orzechowski
2023-05-28renderer/gles2: Merge get_buffer and create_bufferAlexander Orzechowski
2023-05-28renderer/gles2: Interpret matrix as column major in shaderAlexander Orzechowski
Avoids us needing to transpose.
2023-05-28render/vulkan: add 10, 12, and 16-bit YCbCr formatsSimon Ser