diff options
| author | Sebastian Ouellette <bigbrosebas@gmail.com> | 2022-06-19 16:54:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-19 16:54:59 -0400 |
| commit | dc849350597e9eaaa8badab46667dc06d802f650 (patch) | |
| tree | 3c4a78487ba54f63dfc81255b37f1bd887176239 /src/managers/input | |
| parent | 95e083dbd3baec094220848592e9258de8acf2cc (diff) | |
Set the constraint position to the window center (properly)
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.
Diffstat (limited to 'src/managers/input')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index d5bfd8fd..139cafdb 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -49,7 +49,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { // XWayland, we just have to accept them. Might cause issues, but thats XWayland for ya. const auto CONSTRAINTSIZE = CONSTRAINTWINDOW->m_bIsX11 ? Vector2D(CONSTRAINTWINDOW->m_uSurface.xwayland->width, CONSTRAINTWINDOW->m_uSurface.xwayland->height) : CONSTRAINTWINDOW->m_vRealSize.vec(); - const auto CONSTRAINTPOS = Vector2D((CONSTRAINTWINDOW->m_uSurface.xwayland->x + CONSTRAINTSIZE.x) / 2.0, (CONSTRAINTWINDOW->m_uSurface.xwayland->y + CONSTRAINTSIZE.y)); + const auto CONSTRAINTPOS = Vector2D((CONSTRAINTWINDOW->m_uSurface.xwayland->x + CONSTRAINTSIZE.x) / 2.0, (CONSTRAINTWINDOW->m_uSurface.xwayland->y + CONSTRAINTSIZE.y) / 2.0); // I'm a worm and I added some code to override some annoying stuff :) |
