diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 44230e2a..2b2d4695 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -667,6 +667,9 @@ void Events::listener_mapWindow(void* owner, void* data) { if (PMONITOR && PWINDOW->m_iX11Type == 2) 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) {