mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 08:05:58 +01:00
compositor: change monitor focus when no_warps is enabled (#6260)
fixes focus between monitors when moving using directions with no_warps = true
This commit is contained in:
parent
546a486bab
commit
506d0c06e6
1 changed files with 5 additions and 1 deletions
|
@ -2366,8 +2366,12 @@ void CCompositor::warpCursorTo(const Vector2D& pos, bool force) {
|
|||
|
||||
static auto PNOWARPS = CConfigValue<Hyprlang::INT>("cursor:no_warps");
|
||||
|
||||
if (*PNOWARPS && !force)
|
||||
if (*PNOWARPS && !force) {
|
||||
const auto PMONITORNEW = getMonitorFromVector(pos);
|
||||
if (PMONITORNEW != m_pLastMonitor.get())
|
||||
setActiveMonitor(PMONITORNEW);
|
||||
return;
|
||||
}
|
||||
|
||||
g_pPointerManager->warpTo(pos);
|
||||
|
||||
|
|
Loading…
Reference in a new issue