mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-09 02:45:58 +01:00
monitors: update surface outputs on recover from unsafe
This commit is contained in:
parent
cb229f6436
commit
adf5d8a114
1 changed files with 7 additions and 0 deletions
|
@ -101,6 +101,13 @@ void Events::listener_newOutput(wl_listener* listener, void* data) {
|
||||||
const auto POS = PNEWMONITOR->vecPosition + PNEWMONITOR->vecSize / 2.f;
|
const auto POS = PNEWMONITOR->vecPosition + PNEWMONITOR->vecSize / 2.f;
|
||||||
if (g_pCompositor->m_sSeat.mouse)
|
if (g_pCompositor->m_sSeat.mouse)
|
||||||
wlr_cursor_warp(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sSeat.mouse->mouse, POS.x, POS.y);
|
wlr_cursor_warp(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sSeat.mouse->mouse, POS.x, POS.y);
|
||||||
|
} else {
|
||||||
|
for (auto& w : g_pCompositor->m_vWindows) {
|
||||||
|
if (w->m_iMonitorID == PNEWMONITOR->ID) {
|
||||||
|
w->m_iLastSurfaceMonitorID = -1;
|
||||||
|
w->updateSurfaceOutputs();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue