diff options
| author | Ching Pei Yang <59727193+horriblename@users.noreply.github.com> | 2023-02-18 23:35:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-18 22:35:31 +0000 |
| commit | c92e0c05e466f8cbf9c99ddcff969a1b36277248 (patch) | |
| tree | d461585fc9df2880848378128942403f7990f08e /src/managers/KeybindManager.cpp | |
| parent | b944386ca54cf650d660caac31f065c0211168b1 (diff) | |
Resize on border (#1347)
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 26bc3565..1965c935 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -294,6 +294,14 @@ bool CKeybindManager::onMouseEvent(wlr_pointer_button_event* e) { return !found && !mouseBindWasActive; } +void CKeybindManager::resizeWithBorder(wlr_pointer_button_event* e) { + if (e->state == WLR_BUTTON_PRESSED) { + mouse("1resizewindow"); + } else { + mouse("0resizewindow"); + } +} + void CKeybindManager::onSwitchEvent(const std::string& switchName) { handleKeybinds(0, "switch:" + switchName, 0, 0, true, 0); } |
