summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorSebOuellette <bigbrosebas@gmail.com>2022-06-21 16:25:40 -0400
committerSebOuellette <bigbrosebas@gmail.com>2022-06-21 16:25:40 -0400
commit20ad9d3e7d8a6c8a6098a6fc77f9d0f27910c7d7 (patch)
treedd9a4dad95b9edb6bcab8b697ade9403984af1c1 /src/managers/KeybindManager.cpp
parent3dc2277fd05cbb71b858698fed749070a63aa392 (diff)
Passes all constraint tests!
So a summary of what's been done in this fork/PR. Instead of moving the cursor, we're warp_closest ing. warp_absolute didn't work, so warp closest has kindof an auto constrain feature so it works beautifully. I'm also contraining to the right side of the window - 1, because the cursors are treating that pixel as the next pixel over, so it was actually thinking it was on the next monitor (assuming fullscreen) when the cursor got to the right or bottom of the window. TL;DR rounding issue. This fix didn't work when you had a fullscreen video playing on a monitor beside, so I also fixed that by ignoring all focus changes or whatever when a constraint actually occured, we obviously just don't want to focus another monitor when constrained, so why not just *disable it when a constraint happened* The PR is now ready, I love Hyprland, and I can't wait to contribute more :)
Diffstat (limited to 'src/managers/KeybindManager.cpp')
0 files changed, 0 insertions, 0 deletions