mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-14 14:05:59 +00:00
tearing: cleanup vars and avoid rendering before drm is ready
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user