Resize on border (#1347)

This commit is contained in:
Ching Pei Yang
2023-02-18 23:35:31 +01:00
committed by GitHub
parent b944386ca5
commit c92e0c05e4
11 changed files with 228 additions and 51 deletions

View File

@@ -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);
}