wlroots-hyprland/include/wlr
Simon Ser a0345f2854 output: add wlr_output_state.allow_artifacts
When starting up, the compositor might call wlr_output_set_mode()
with a mode which is already the current one. wlroots will detect
this and make the wlr_output_set_mode() call a no-op. During the
next wlr_output_commit() call, wlroots will perform an atomic
commit without the ALLOW_MODESET flag.

This is an issue, because some drivers need ALLOW_MODESET even if
the mode is the same. For instance, if the FB stride or modifier
changed, some drivers require a modeset.

Add a new flag "allow_artifacts" which is set when the compositor
calls mode-setting functions. Use this flag to figure out whether
we want to perform atomic commits with ALLOW_MODESET.

(The name "allow_artifacts" is picked because ALLOW_MODESET is a
misnomer, see [1].)

[1]: https://patchwork.freedesktop.org/patch/505107/

Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3499
2022-09-30 10:58:17 +00:00
..
backend Reformat doc comments 2022-05-25 14:22:58 +00:00
interfaces output: fail commits if adaptive sync cannot be enabled 2022-08-30 17:53:50 +00:00
render render: replace wlr_texture_write_pixels with update_from_buffer 2022-08-12 08:41:32 +00:00
types output: add wlr_output_state.allow_artifacts 2022-09-30 10:58:17 +00:00
util util/box: Introduce wlr_fbox_equal 2022-08-15 06:14:59 -04:00
backend.h Reformat doc comments 2022-05-25 14:22:58 +00:00
config.h.in build: make GBM optional 2022-05-30 13:30:08 +00:00
meson.build build: bump version to 0.16.0-dev 2022-05-24 15:04:14 +02:00
version.h.in Drop WLR_VERSION_API_* 2021-06-29 12:22:55 +02:00
xcursor.h xcursor: improve documentation 2021-07-05 11:00:15 -04:00
xwayland.h Document NULL return value of foo_from_wlr_surface() functions 2022-07-02 13:28:02 +02:00