Draw HyprError on the last monitor

This commit is contained in:
vaxerski 2023-02-28 19:18:13 +00:00
parent 4d3f2ca96b
commit 7beb9fd606
3 changed files with 29 additions and 11 deletions

View file

@ -260,12 +260,10 @@ void Events::listener_monitorFrame(void* owner, void* data) {
g_pHyprRenderer->renderAllClientsForMonitor(PMONITOR->ID, &now);
// if correct monitor draw hyprerror
if (PMONITOR == g_pCompositor->m_vMonitors.front().get())
g_pHyprError->draw();
if (PMONITOR == g_pCompositor->m_pLastMonitor)
if (PMONITOR == g_pCompositor->m_pLastMonitor) {
g_pHyprNotificationOverlay->draw(PMONITOR);
g_pHyprError->draw();
}
// for drawing the debug overlay
if (PMONITOR == g_pCompositor->m_vMonitors.front().get() && *PDEBUGOVERLAY == 1) {