diff options
author | Simon Ser <contact@emersion.fr> | 2019-09-26 12:10:49 +0300 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-09-26 10:36:18 -0400 |
commit | 00c4c7e8cc437c6f905c6fbe94cf8eaf508f8644 (patch) | |
tree | 224a10fe66802900ca02dfc8db345fed92cb3124 /sway/ipc-server.c | |
parent | 7e420cb6e4a334dea7296060820de12a768b76da (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 'sway/ipc-server.c')
0 files changed, 0 insertions, 0 deletions