diff options
| author | dranull <150595692+dranull@users.noreply.github.com> | 2023-12-16 20:47:58 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-16 20:47:58 +0000 |
| commit | 9ca0c7d814d6039450ff0341556faa1ce9b37e82 (patch) | |
| tree | fa54a37046c3276c82a43e37a08612416f1c27b5 /src/managers/input/InputManager.cpp | |
| parent | b1b8d732e64ecf527baef010ad2f28ed3b8c4ac1 (diff) | |
input: Activate resize_on_border only when key is pressed (#4170)
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -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 9df59dfb..c6904a82 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -625,7 +625,7 @@ void CInputManager::processMouseDownNormal(wlr_pointer_button_event* e) { // clicking on border triggers resize // TODO detect click on LS properly - if (*PRESIZEONBORDER && !m_bLastFocusOnLS) { + if (*PRESIZEONBORDER && !m_bLastFocusOnLS && e->state == WLR_BUTTON_PRESSED) { if (w && !w->m_bIsFullscreen) { const CBox real = {w->m_vRealPosition.vec().x, w->m_vRealPosition.vec().y, w->m_vRealSize.vec().x, w->m_vRealSize.vec().y}; const CBox grab = {real.x - BORDER_GRAB_AREA, real.y - BORDER_GRAB_AREA, real.width + 2 * BORDER_GRAB_AREA, real.height + 2 * BORDER_GRAB_AREA}; |
