wlroots-hyprland/include/wlr
Simon Ser 507d9bc19e Add wlr_output_impl.rollback
Most of the pending output state is not forwarded to the backend prior
to an output commit. For instance, wlr_output_set_mode just stashes the
mode without calling any wlr_output_impl function.
wlr_output_impl.commit is responsible for applying the pending mode.

However, there are exceptions to this rule. The first one is
wlr_output_attach_render. It won't go away before renderer v6 is
complete, because it needs to set the current EGL surface.

The second one is wlr_output_attach_buffer.
wlr_output_impl.attach_buffer is removed in [1].

When wlr_output_rollback is called, all pending state is supposed to be
cleared. This works for all the state except the two exceptions
mentionned above. To fix this, introduce wlr_output_impl.rollback.

Right now, the backend resets the current EGL surface. This prevents GL
commands from affecting the output after wlr_output_rollback.

This patch is required for FBO-based outputs to work properly. The
compositor might be using FBOs for its own purposes [2], having leftover
FBO state can have bad consequences.

[1]: https://github.com/swaywm/wlroots/pull/2097
[2]: https://github.com/swaywm/wlroots/pull/2063#issuecomment-597614312
2020-04-08 17:33:00 +02:00
..
backend Drop RDP backend 2020-01-10 19:38:39 +01:00
interfaces Add wlr_output_impl.rollback 2020-04-08 17:33:00 +02:00
render Return failure of wlr_renderer_init_wl_display() 2020-03-23 15:19:16 +01:00
types output: check buffer in wlr_output_test 2020-04-08 16:31:21 +02:00
util meson: Various improvements 2019-12-23 07:48:29 -05:00
backend.h Remove all wayland-server.h includes 2019-07-27 15:49:32 -04:00
config.h.in Drop RDP backend 2020-01-10 19:38:39 +01:00
meson.build build: replace version with soversion 2020-01-24 11:17:03 +01:00
version.h.in Revert "Revert "Merge pull request #1194 from ascent12/meson_feature"" 2018-08-24 19:35:02 +12:00
xcursor.h Initial pass on API stability guarantees 2018-07-29 19:20:34 -04:00
xwayland.h xwayland: Expose configure request mask 2019-10-08 19:46:06 +03:00