yshui / picom

A lightweight compositor for X11
Other
3.92k stars 576 forks source link

various fixes #1242

Closed absolutelynothelix closed 2 months ago

absolutelynothelix commented 2 months ago

backend/gl: specify the time uniform location in blit_shader_glsl

to avoid breaking custom animated shaders by having to specify it themselves.

picom: fix the benchmark option

mimic the normal rendering routine by setting ps->render_queued to true before setting and starting the draw timer.

picom: fix custom animated shaders

the draw timer has to be stopped before calling the draw_callback_impl function because when there's a custom animated shader it calls the queue_redraw funtion that calls the schedule_render function that sets and starts the draw timer that gets immediately stopped otherwise.

this fixes the screen not being redirected back with unredir-if-possible and a custom animated shader and only the first frame being drawn with vsync, no-frame-pacing and a custom animated shader.