From c92e0c05e466f8cbf9c99ddcff969a1b36277248 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang <59727193+horriblename@users.noreply.github.com> Date: Sat, 18 Feb 2023 23:35:31 +0100 Subject: Resize on border (#1347) --- src/managers/KeybindManager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/managers/KeybindManager.cpp') 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); } -- cgit v1.2.3