aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-02-27backend: make wlr_backend_autocreate() fail when DRM is missingSimon Ser
When we change the required dependencies for the DRM backend, Meson might auto-disable the backend for users missing the new requirements. This results in confused users [1] because they don't notice the "drm-backend: NO" line burried in the Meson logs, and then get a black screen when starting the compositor. Update wlr_backend_autocreate() to refuse to create a backend with only libinput (without DRM). Users really wanting to start their compositor with a libinput backend and without a DRM backend can manually set WLR_BACKENDS. [1]: https://github.com/swaywm/sway/issues/7457
2023-02-26output: allow modeset with buffer while frame is pendingSimon Ser
Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3600
2023-02-24output: leverage wlr_output_configure_primary_swapchain()Simon Ser
Replace our current logic to setup the primary swapchain with wlr_output_configure_primary_swapchain(). - Removes some code, reducing duplication - Stop overwriting wlr_output.swapchain with a yet-to-be-tested swapchain: remove the error_destroy_swapchain label.
2023-02-24output: introduce wlr_output_configure_primary_swapchain()Simon Ser
The goal is to simplify wlr_output by moving all of its rendering API into separate helpers. Here is a first step to sunset wlr_output_attach_render(). Instead, compositors call wlr_output_configure_primary_swapchain(), wlr_swapchain_acquire(), wlr_renderer_begin_with_buffer() and wlr_output_attach_buffer(). Note that compositors can supply a base struct wlr_output_state. This is useful to allocate a buffer suitable for submission with a modeset, for instance. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3079 References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3197 References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3984
2023-02-24vulkan: silence -Wint-conversion on 32-bit architecturesJan Beich
render/vulkan/renderer.c:388:70: error: incompatible pointer to integer conversion passing 'void *' to parameter of type 'VkFence' (aka 'unsigned long long') [-Werror,-Wint-conversion] VkResult res = vkQueueSubmit(renderer->dev->queue, 1, &submit_info, NULL); ^~~~ render/vulkan/renderer.c:1141:81: error: incompatible pointer to integer conversion passing 'void *' to parameter of type 'VkFence' (aka 'unsigned long long') [-Werror,-Wint-conversion] VkResult res = vkQueueSubmit(renderer->dev->queue, submit_count, submit_infos, NULL); ^~~~ /usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ /usr/local/include/vulkan/vulkan_core.h:4054:49: note: passing argument to parameter 'fence' here VkFence fence); ^ Fixes: a8a194d695af ("render/vulkan: switch to timeline semaphores")
2023-02-24swapchain: remove allocator listener on destroySimon Ser
Past that point the wlr_allocator is gone and the listeners are invalidated.
2023-02-22Switch to "meson setup"Simon Ser
Fixes this warning: WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
2023-02-21render/swapchain: make publicSimon Ser
We've had this struct for a while. It'd be useful for compositors if they want to manage the swap chains themselves instead of being forced to use wlr_output's. Some compositors might also want to use a swapchain without an output.
2023-02-21backend: disable DRM backend monitor when WLR_DRM_DEVICES is usedSimon Ser
WLR_DRM_DEVICES specifies a static list of DRM devices to open at startup. Do not create DRM backends for hotplugged DRM devices when it's set. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3595
2023-02-21backend: avoid adding NULL backend in attempt_backend_by_name()Simon Ser
2023-02-21backend: create DRM backend monitor when WLR_BACKENDS is usedSimon Ser
2023-02-21output-layer: document interactions with screen captureSimon Ser
When e.g. screencopy-v1 is active, callers are responsible for disabling output layers.
2023-02-21backend/headless: unconditionally accept all output layersSimon Ser
We don't need to do anything special to handle these.
2023-02-21backend/drm: drop wlr_drm_layer.pending_{width,height}Simon Ser
No need to store this info in struct wlr_drm_layer. We can just extract the size when we need it.
2023-02-21output: expose wlr_output_state_set_buffer()Simon Ser
2023-02-21output: expose wlr_output_state_finish()Simon Ser
Same as the original function, but check for the bitfield before calling pixman_region32_fini(), because that function expects an initialized region.
2023-02-21screencopy-v1: drop unnecessary pixman_region32_t castsSimon Ser
The Pixman API now accepts const parameters.
2023-02-21backend/drm: drop unnecessary pixman_region32_t castsSimon Ser
The Pixman API now accepts const parameters.
2023-02-21xwayland: Send synthetic ConfigureNotify per ICCCM 4.1.5John Lindgren
X11 clients expect a ConfigureNotify after a ConfigureRequest. If the compositor/window manager chooses not to honor the request (e.g. due to the window being maximized), XWayland will not send a "real" ConfigureNotify event and the window manager is expected to send a synthetic event instead. Otherwise, the X11 client is left waiting and may not repaint its window properly. For comparison, see Openbox's client_configure() or Weston's weston_wm_window_send_configure_notify(). v2: Move logic to wlr_xwayland_surface_configure()
2023-02-20wlr_scene: Add dmabuf_feedback helperAlexander Orzechowski
2023-02-20wlr_scene: Extract considering logic for direct scanoutAlexander Orzechowski
2023-02-20wlr_scene: Cleanup header includesAlexander Orzechowski
We don't need to pull wlr_compositor.
2023-02-20examples/output-layers: relay feedback eventsSimon Ser
2023-02-20linux-dmabuf-v1: add helper for output layer feedback eventsSimon Ser
2023-02-20backend/drm: send output layer feedback eventsSimon Ser
2023-02-20output-layer: add feedback eventSimon Ser
2023-02-20backend/drm: add support for output layersSimon Ser
2023-02-20backend/drm: add libliftoff composition layerSimon Ser
This will be useful for implementing the output layers API.
2023-02-20backend/drm: add libliftoff interfaceSimon Ser
2023-02-20backend/drm: init wlr_drm_plane for all plane typesSimon Ser
2023-02-20examples/output-layers: new exampleSimon Ser
2023-02-20backend/wayland: implement output layersSimon Ser
2023-02-20output: add wlr_output_set_layers()Simon Ser
2023-02-20Add wlr_output_layerSimon Ser
This is based on previous work [1] [2]. This new API allows compositors to display buffers without needing to perform rendering operations. This API can be implemented on Wayland using subsurfaces and on DRM using KMS planes. Compared to [1], this approach leverages wlr_addon_set to let backends attach their own private state to layers, removes the pending state (necessary for interop with wlr_output_commit_state()) and enum wlr_output_layer_state_field. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/1985 [2]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3447
2023-02-19build: enable subproject for libxkbcommonSimon Ser
References: https://github.com/xkbcommon/libxkbcommon/pull/315
2023-02-18Revert "render/egl: skip incompatible EGL devices"Simon Zeni
Reverts commit c73e20628ad3cf8a38fc1cebd061a49da8708394. This caused a regression in the GLES2 renderer because `egl->exts.EXT_device_drm` is set in `egl_init_display()`, which is invoked after `get_egl_device_from_drm_fd()`. So the function will always return `EGL_NO_DEVICE_EXT`.
2023-02-17fullscreen-shell: add release request handlerVasyl Vavrychuk
2023-02-16render/egl: skip incompatible EGL devicesEric Engestrom
Without EGL_EXT_device_drm, eglQueryDeviceStringEXT(EGL_DRM_DEVICE_FILE_EXT) further below is invalid.
2023-02-15build: set pkgconfig URLSimon Ser
For informational purposes.
2023-02-15build: remove unnecessary pkgconfig argumentsSimon Ser
If left unspecified, these defaults to the project name and version.
2023-02-13xwayland: Read and publish _NET_WM_STRUT_PARTIAL propertyJohn Lindgren
This is needed for compositors that want to reserve space for XWayland panels. Such a feature can be useful in a "transitional" setup, where only the X11 window manager and compositor is replaced but other components of an X11 desktop environment are still used. This change simply reads the X11 property; the compositor is free to ignore it. Thus, compositors that don't want to support such a "transitional" feature are not impacted. v2: Update xwayland_surface_associate()
2023-02-13Switch IRC channel to #wlrootsSimon Ser
The #sway-devel channel is now for Sway development only. #wlroots is the new channel to use for wlroots. We were using #sway-devel mostly for histerical raisins. Nowadays many wlroots developers are not working on Sway. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3586
2023-02-08scene: Add fractional scale handlingKenny Levinsen
2023-02-08wp-fractional-scale-v1: new protocol implementationKenny Levinsen
This implements the WIP wp-fractional-scale-v1 protocol.
2023-02-07linux-dmabuf-v1: fix missing SCANOUT flagSimon Ser
options->scanout_primary_output indicates an output on which scanout is desirable. Set the missing SCANOUT flag. Fixes: 0c966f102c1d ("linux-dmabuf-v1: add wlr_linux_dmabuf_feedback_v1_init_with_options()")
2023-02-06linux-dmabuf-v1: use wlr_linux_dmabuf_feedback_v1_init_with_options()Simon Ser
2023-02-06linux-dmabuf-v1: add wlr_linux_dmabuf_feedback_v1_init_with_options()Simon Ser
2023-02-06linux-dmabuf-v1: add basic helpers for feedbackSimon Ser
2023-02-06linux-dmabuf-v1: stop using const in feedbackSimon Ser
Instead of using const pointers, use structs owned by the tranche. This will allow wlroots to expose helpers to build feedback objects.
2023-02-06xdg-activation: accept pointer focus for new tokensConsolatis
This patch allows surfaces without keyboard focus but with pointer focus to receive valid tokens. This can be relevant for applications using an older version of the layershell protocol which only provided the choice between no keyboard focus and exclusive keyboard focus.