fix crash when yanking mouse before init

This commit is contained in:
vaxerski 2022-04-28 17:57:24 +02:00
parent 51172129d7
commit 4b985d3e38
3 changed files with 8 additions and 0 deletions

View file

@ -122,6 +122,9 @@ void Events::listener_newOutput(wl_listener* listener, void* data) {
if (!g_pCompositor->m_pLastMonitor) // set the last monitor if it isnt set yet
g_pCompositor->m_pLastMonitor = PNEWMONITOR;
// ready to process cuz we have a monitor
g_pCompositor->m_bReadyToProcess = true;
}
void Events::listener_monitorFrame(void* owner, void* data) {