Warp cursor to newly created window if enabled.

This commit is contained in:
Gabriel Ford 2024-04-27 17:56:37 -04:00
parent 1d40af64d3
commit a6b4fe1007

View file

@ -667,6 +667,9 @@ void Events::listener_mapWindow(void* owner, void* data) {
if (PMONITOR && PWINDOW->m_iX11Type == 2) if (PMONITOR && PWINDOW->m_iX11Type == 2)
PWINDOW->m_fX11SurfaceScaledBy = PMONITOR->scale; PWINDOW->m_fX11SurfaceScaledBy = PMONITOR->scale;
// Move cursor to middle of new window if enabled.
g_pCompositor->warpCursorTo(PWINDOW->middle());
} }
void Events::listener_unmapWindow(void* owner, void* data) { void Events::listener_unmapWindow(void* owner, void* data) {