aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/input/InputManager.cpp
AgeCommit message (Collapse)Author
2022-06-25additional keymap reload safetyvaxerski
2022-06-24added general:cursor_inactive_timeoutvaxerski
2022-06-23guard pkeyboard in onMouseButtonvaxerski
2022-06-23guard null context in applyConfigToKeyboardvaxerski
2022-06-23reload all keyboards and not only the activevaxerski
2022-06-22Fixed oversized apps' incorrect layoutvaxerski
2022-06-21dang it autoformatvaxerski
2022-06-21cleaner codevaxerski
2022-06-21Passes all constraint tests!SebOuellette
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 :)
2022-06-21Actually, mostly working.SebOuellette
One failure case: When there is a fullscreen window directly to the right of a game, for example, in a multimonitor setup, then the cursor will bug out in between the monitors. sometimes it will get constrained to the border, but just outside the window (which is what this PR fixes, so it's unusual) and sometimes the cursor will just ignore the constraint entirely. However this is only in the one case.
2022-06-20Mouse no longer removes focus from constraining windowSebOuellette
The window properly constrains the mouse now I do still notice a bug with moving the mouse in games, if you don't move the mouse fast enough, some games will not register the mouse movement. This doesn't happen in KDE so I know it's related somehow
2022-06-19Set the constraint position to the window center (properly)Sebastian Ouellette
Missed one expression, it was set to the bottom middle. I missed it because i don't have an extra monitor extending from the bottom of that screen.
2022-06-19Converted tabs to spaces. Now ready for PRSebastian Ouellette
2022-06-19Cleaned up some old debugSebOuellette
2022-06-19Invisible cursors are constrained to centerSebastian Ouellette
This is a first version of my test to properly constrain cursors. This is mostly working in the buggy applications I had before, but I feel that the cursor needs to actually move around, instead of being locked to the center of the window. This may cause problems when locking to the edge, but yeah.
2022-06-16Resolves #204. Enables numlock on startup when configured to do so.bazuin-32
2022-06-12CodestyleMarco Siedentopf
2022-06-12Merge branch 'vaxerski:main' into mainMarco Siedentopf
2022-06-12Access config value staticallyspectreseven1138
2022-06-12Implemented Config options for TouchpadsMarco Siedentopf
Implemented Options to 1. toggle between clickfinger behavior and software buttons, 2. button emulation and 3. tap-to-click
2022-06-12Add loose (2) option to follow_mouse configspectreseven1138
2022-06-11Add natural_scrolling option for touchpads onlyBruno Ancona
2022-06-09remove unfocusallvaxerski
2022-06-09unfocus tabletsvaxerski
2022-06-09set proximity in tabletsvaxerski
2022-06-09added tablet v2 support (alpha alpha)vaxerski