mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 19:31:29 +00:00
output: Replace block_idle_frame with frame_pending
This commit is contained in:
parent
6968fb3123
commit
57f615e122
|
@ -513,7 +513,7 @@ int output_repaint_timer_handler(void *data) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
output->wlr_output->block_idle_frame = false;
|
output->wlr_output->frame_pending = false;
|
||||||
|
|
||||||
struct sway_workspace *workspace = output->current.active_workspace;
|
struct sway_workspace *workspace = output->current.active_workspace;
|
||||||
if (workspace == NULL) {
|
if (workspace == NULL) {
|
||||||
|
@ -618,7 +618,7 @@ static void damage_handle_frame(struct wl_listener *listener, void *user_data) {
|
||||||
if (delay < 1) {
|
if (delay < 1) {
|
||||||
output_repaint_timer_handler(output);
|
output_repaint_timer_handler(output);
|
||||||
} else {
|
} else {
|
||||||
output->wlr_output->block_idle_frame = true;
|
output->wlr_output->frame_pending = true;
|
||||||
wl_event_source_timer_update(output->repaint_timer, delay);
|
wl_event_source_timer_update(output->repaint_timer, delay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue