mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-24 19:09:49 +01:00
Warp cursor to newly created window if enabled.
This commit is contained in:
parent
1d40af64d3
commit
a6b4fe1007
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue