fixes for exec-once and hyprerror

This commit is contained in:
vaxerski 2022-04-09 22:49:07 +02:00
parent 787c82212d
commit c8c9a966b4
2 changed files with 3 additions and 2 deletions

View file

@ -262,8 +262,8 @@ void CConfigManager::parseLine(std::string& line) {
} else if (COMMAND == "exec-once") {
if (isFirstLaunch) {
handleRawExec(COMMAND, VALUE);
return;
}
return;
} else if (COMMAND == "monitor") {
handleMonitor(COMMAND, VALUE);
return;

View file

@ -78,7 +78,7 @@ void CHyprError::createQueued() {
}
void CHyprError::draw() {
if (!m_bIsCreated) {
if (!m_bIsCreated || m_szQueued != "") {
if (m_szQueued != "")
createQueued();
return;
@ -88,6 +88,7 @@ void CHyprError::draw() {
m_bQueuedDestroy = false;
m_tTexture.destroyTexture();
m_bIsCreated = false;
m_szQueued = "";
return;
}