]> git.mdlowis.com Git - proto/labwc.git/commit
tearing: avoid permanent disable due to rejected commits (#2295)
authorRicardo Steijn <61013287+RicArch97@users.noreply.github.com>
Sun, 3 Nov 2024 21:05:46 +0000 (22:05 +0100)
committerGitHub <noreply@github.com>
Sun, 3 Nov 2024 21:05:46 +0000 (21:05 +0000)
commit8f940358e40571bb0ba1a0e49c334705e17b3a21
treed874f81f349c71f17093c665c3cfc5b67861eac2
parentc29d8a2174ccc8dc8c6944c74463a943f43eab36
tearing: avoid permanent disable due to rejected commits (#2295)

Currently, the cursor plane does not allow async page flips which causes tearing page flips to be rejected if the cursor was moved.

However, in games where no cursor image is present, the async page flips can still work as expected.

Instead of permanently disabling tearing after too many failures, test the output state first before each frame to see if we can commit with tearing_page_flip set to true.
include/labwc.h
src/common/scene-helpers.c
src/output.c