mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
output: Restore previous max_render_time behavior
This commit is contained in:
parent
d1eab10266
commit
275af2ad62
@ -426,7 +426,7 @@ static void send_frame_done_iterator(struct sway_output *output, struct sway_vie
|
|||||||
int delay = data->msec_until_refresh - output->max_render_time
|
int delay = data->msec_until_refresh - output->max_render_time
|
||||||
- view_max_render_time;
|
- view_max_render_time;
|
||||||
|
|
||||||
if ((output->max_render_time == 0 && view_max_render_time == 0) || delay < 1) {
|
if (output->max_render_time == 0 || view_max_render_time == 0 || delay < 1) {
|
||||||
wlr_surface_send_frame_done(surface, &data->when);
|
wlr_surface_send_frame_done(surface, &data->when);
|
||||||
} else {
|
} else {
|
||||||
struct sway_surface *sway_surface = surface->data;
|
struct sway_surface *sway_surface = surface->data;
|
||||||
|
Loading…
Reference in New Issue
Block a user