aboutsummaryrefslogtreecommitdiff
path: root/swaybar/tray/host.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-09-26 12:10:49 +0300
committerDrew DeVault <sir@cmpwn.com>2019-09-26 10:36:18 -0400
commit00c4c7e8cc437c6f905c6fbe94cf8eaf508f8644 (patch)
tree224a10fe66802900ca02dfc8db345fed92cb3124 /swaybar/tray/host.c
parent7e420cb6e4a334dea7296060820de12a768b76da (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 'swaybar/tray/host.c')
0 files changed, 0 insertions, 0 deletions