aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-05-12 12:46:38 +0200
committervaxerski <[email protected]>2022-05-12 12:46:38 +0200
commit15f788677735ea6b9e21a735b93fc8492a68a7ae (patch)
tree1dd1378fa98f4100e62644a381267e6103776cae /src
parent2a368ef9947f8de0cfa623d798a3a9620ae4a9e4 (diff)
downloadHyprland-15f788677735ea6b9e21a735b93fc8492a68a7ae.tar.gz
Hyprland-15f788677735ea6b9e21a735b93fc8492a68a7ae.zip
hyprerror fixes
Diffstat (limited to 'src')
-rw-r--r--src/hyprerror/HyprError.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hyprerror/HyprError.cpp b/src/hyprerror/HyprError.cpp
index a26ad4c3..135f9635 100644
--- a/src/hyprerror/HyprError.cpp
+++ b/src/hyprerror/HyprError.cpp
@@ -79,6 +79,8 @@ void CHyprError::createQueued() {
m_bIsCreated = true;
m_szQueued = "";
m_cQueued = CColor();
+
+ g_pHyprRenderer->damageMonitor(PMONITOR);
}
void CHyprError::draw() {
@@ -93,6 +95,7 @@ void CHyprError::draw() {
m_tTexture.destroyTexture();
m_bIsCreated = false;
m_szQueued = "";
+ g_pHyprRenderer->damageMonitor(&g_pCompositor->m_lMonitors.front());
return;
}
@@ -107,5 +110,6 @@ void CHyprError::draw() {
}
void CHyprError::destroy() {
- m_bQueuedDestroy = true;
+ if (m_bIsCreated)
+ m_bQueuedDestroy = true;
} \ No newline at end of file