mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-02 03:26:00 +01:00
cleanup old comments
This commit is contained in:
parent
8b5497f11f
commit
01918cdce5
1 changed files with 0 additions and 2 deletions
|
@ -399,8 +399,6 @@ void CInputManager::processMouseDownNormal(wlr_pointer_button_event* e) {
|
||||||
if (*PBORDERRESIZE && w) {
|
if (*PBORDERRESIZE && w) {
|
||||||
const wlr_box box = w->getFullWindowBoundingBox();
|
const wlr_box box = w->getFullWindowBoundingBox();
|
||||||
const wlr_box real = {w->m_vRealPosition.vec().x, w->m_vRealPosition.vec().y, w->m_vRealSize.vec().x, w->m_vRealSize.vec().y};
|
const wlr_box real = {w->m_vRealPosition.vec().x, w->m_vRealPosition.vec().y, w->m_vRealSize.vec().x, w->m_vRealSize.vec().y};
|
||||||
// check if clicked on gaps/border (borders are hard to click on, doesn't matter how thick it is)
|
|
||||||
// TODO take curved corners into consideration
|
|
||||||
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))) {
|
||||||
|
|
Loading…
Reference in a new issue