mirror of
https://github.com/swaywm/sway.git
synced 2025-11-13 13:29:49 -05:00
desktop/output: Clear frame_pending even output is disabled
frame_pending should always be cleared once the repaint callback is
fired to ensure that future frame scheduling is not accidentally held
back.
(cherry picked from commit fdc4318ac6)
This commit is contained in:
parent
597c55cba4
commit
14ac15f0c9
1 changed files with 1 additions and 2 deletions
|
|
@ -262,12 +262,11 @@ static bool output_can_tear(struct sway_output *output) {
|
||||||
static int output_repaint_timer_handler(void *data) {
|
static int output_repaint_timer_handler(void *data) {
|
||||||
struct sway_output *output = data;
|
struct sway_output *output = data;
|
||||||
|
|
||||||
|
output->wlr_output->frame_pending = false;
|
||||||
if (!output->enabled) {
|
if (!output->enabled) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
output->wlr_output->frame_pending = false;
|
|
||||||
|
|
||||||
output_configure_scene(output, &root->root_scene->tree.node, 1.0f);
|
output_configure_scene(output, &root->root_scene->tree.node, 1.0f);
|
||||||
|
|
||||||
struct wlr_scene_output_state_options opts = {
|
struct wlr_scene_output_state_options opts = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue