tearing: cleanup vars and avoid rendering before drm is ready

This commit is contained in:
vaxerski
2023-09-30 17:07:50 +01:00
parent e2b72b2975
commit a2a29a60e5
6 changed files with 37 additions and 33 deletions

View File

@@ -82,12 +82,16 @@ class CMonitor {
CRegion lastFrameDamage; // stores last frame damage
// for tearing
CWindow* solitaryClient = nullptr;
bool canTear = false;
bool nextRenderTorn = false;
bool ignoreNextFlipEvent = false;
bool renderingFromVblankEvent = false;
bool activelyTearing = false;
CWindow* solitaryClient = nullptr;
struct {
bool canTear = false;
bool nextRenderTorn = false;
bool activelyTearing = false;
bool busy = false;
bool frameScheduledWhileBusy = false;
} tearingState;
// for the special workspace. 0 means not open.
int specialWorkspaceID = 0;