summaryrefslogtreecommitdiff
path: root/src/helpers/Monitor.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-09-30 17:07:50 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-09-30 17:07:50 +0100
commita2a29a60e5301df2cadf58c1bb18495d02710547 (patch)
tree3733a017de47a82b3c654e960f39ce61982f5781 /src/helpers/Monitor.hpp
parente2b72b2975782719759b989853578db95671b069 (diff)
tearing: cleanup vars and avoid rendering before drm is ready
Diffstat (limited to 'src/helpers/Monitor.hpp')
-rw-r--r--src/helpers/Monitor.hpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/helpers/Monitor.hpp b/src/helpers/Monitor.hpp
index d0a86f3f..71c84273 100644
--- a/src/helpers/Monitor.hpp
+++ b/src/helpers/Monitor.hpp
@@ -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;