mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 23:06:00 +01:00
refactor: rename to resizeWithBorder
This commit is contained in:
parent
8b1eba2795
commit
379b40aef7
3 changed files with 3 additions and 3 deletions
|
@ -283,7 +283,7 @@ bool CKeybindManager::onMouseEvent(wlr_pointer_button_event* e) {
|
||||||
return !found && !mouseBindWasActive;
|
return !found && !mouseBindWasActive;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CKeybindManager::onGapDragEvent(wlr_pointer_button_event* e) {
|
void CKeybindManager::resizeWithBorder(wlr_pointer_button_event* e) {
|
||||||
if (e->state == WLR_BUTTON_PRESSED) {
|
if (e->state == WLR_BUTTON_PRESSED) {
|
||||||
mouse("1resizewindow");
|
mouse("1resizewindow");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -39,7 +39,7 @@ class CKeybindManager {
|
||||||
bool onKeyEvent(wlr_keyboard_key_event*, SKeyboard*);
|
bool onKeyEvent(wlr_keyboard_key_event*, SKeyboard*);
|
||||||
bool onAxisEvent(wlr_pointer_axis_event*);
|
bool onAxisEvent(wlr_pointer_axis_event*);
|
||||||
bool onMouseEvent(wlr_pointer_button_event*);
|
bool onMouseEvent(wlr_pointer_button_event*);
|
||||||
void onGapDragEvent(wlr_pointer_button_event*);
|
void resizeWithBorder(wlr_pointer_button_event*);
|
||||||
void onSwitchEvent(const std::string&);
|
void onSwitchEvent(const std::string&);
|
||||||
void onSwitchOnEvent(const std::string&);
|
void onSwitchOnEvent(const std::string&);
|
||||||
void onSwitchOffEvent(const std::string&);
|
void onSwitchOffEvent(const std::string&);
|
||||||
|
|
|
@ -406,7 +406,7 @@ void CInputManager::processMouseDownNormal(wlr_pointer_button_event* e) {
|
||||||
const auto mouseCoords = g_pInputManager->getMouseCoordsInternal();
|
const auto mouseCoords = g_pInputManager->getMouseCoordsInternal();
|
||||||
if (wlr_box_contains_point(&box, mouseCoords.x, mouseCoords.y) &&
|
if (wlr_box_contains_point(&box, mouseCoords.x, mouseCoords.y) &&
|
||||||
(!wlr_box_contains_point(&real, mouseCoords.x, mouseCoords.y) || w->isInCurvedCorner(mouseCoords.x, mouseCoords.y))) {
|
(!wlr_box_contains_point(&real, mouseCoords.x, mouseCoords.y) || w->isInCurvedCorner(mouseCoords.x, mouseCoords.y))) {
|
||||||
g_pKeybindManager->onGapDragEvent(e);
|
g_pKeybindManager->resizeWithBorder(e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue