diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-09-26 12:10:49 +0300 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-09-26 12:10:49 +0300 |
| commit | a2ed48da057f0d210e4b21f3d20fff90844afa57 (patch) | |
| tree | 224a10fe66802900ca02dfc8db345fed92cb3124 /meson.build | |
| parent | 083044ddfb2d7fcff55a9d96e5db7bc21f4c239f (diff) | |
Fix direct scan-out flickering
Sometimes when using direct scan-out, some flickering between the
fullscreen app and the regular desktop could be seen.
This happened because we called wlr_output_attach_render and then
wlr_output_attach_buffer for direct scan-out. wlr_output_attach_render
makes the OpenGL context current but also attaches the OpenGL buffer to
the primary plane apparently (all of this happens inside
eglMakeCurrent).
This patch moves the scan-out logic outside of output_render, before
wlr_output_attach_render. This lines it up with rootston's
implementation. This also makes more sense since no rendering is
involved when using direct scan-out.
Sorry about that, I should've tested this with more clients. The new
code has been tested with mpv and a GLFW demo.
Diffstat (limited to 'meson.build')
0 files changed, 0 insertions, 0 deletions
