mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-09 04:58:07 +02:00
Removed the uninitialized primitives :3
This commit is contained in:
parent
c1070d5077
commit
beeec155a6
1 changed files with 5 additions and 11 deletions
|
|
@ -694,11 +694,11 @@ void CHyprDwindleLayout::resizeActiveWindow(const Vector2D& pixResize, eRectCorn
|
|||
SP<SDwindleNodeData> PHOUTER = nullptr;
|
||||
SP<SDwindleNodeData> PHINNER = nullptr;
|
||||
|
||||
bool LEFT;
|
||||
bool TOP;
|
||||
bool RIGHT;
|
||||
bool BOTTOM;
|
||||
bool NONE;
|
||||
bool LEFT = corner == CORNER_TOPLEFT || corner == CORNER_BOTTOMLEFT || DISPLAYRIGHT;
|
||||
bool TOP = corner == CORNER_TOPLEFT || corner == CORNER_TOPRIGHT || DISPLAYBOTTOM;
|
||||
bool RIGHT = corner == CORNER_TOPRIGHT || corner == CORNER_BOTTOMRIGHT || DISPLAYLEFT;
|
||||
bool BOTTOM = corner == CORNER_BOTTOMLEFT || corner == CORNER_BOTTOMRIGHT || DISPLAYTOP;
|
||||
bool NONE = corner == CORNER_NONE;
|
||||
|
||||
if (KEYBOARD_RESIZE && *PSMARTRESIZING == 2) {
|
||||
LEFT = ((*PSMARTRESIZING >= 1) && (corner == CORNER_TOPLEFT || corner == CORNER_BOTTOMLEFT || DISPLAYRIGHT));
|
||||
|
|
@ -708,12 +708,6 @@ void CHyprDwindleLayout::resizeActiveWindow(const Vector2D& pixResize, eRectCorn
|
|||
BOTTOM = (((*PSMARTRESIZING == 1) && (corner == CORNER_BOTTOMLEFT || corner == CORNER_BOTTOMRIGHT || DISPLAYTOP)) ||
|
||||
(!(corner == CORNER_BOTTOMRIGHT) && !(corner == CORNER_BOTTOMLEFT)));
|
||||
NONE = (!KEYBOARD_RESIZE);
|
||||
} else {
|
||||
LEFT = corner == CORNER_TOPLEFT || corner == CORNER_BOTTOMLEFT || DISPLAYRIGHT;
|
||||
TOP = corner == CORNER_TOPLEFT || corner == CORNER_TOPRIGHT || DISPLAYBOTTOM;
|
||||
RIGHT = corner == CORNER_TOPRIGHT || corner == CORNER_BOTTOMRIGHT || DISPLAYLEFT;
|
||||
BOTTOM = corner == CORNER_BOTTOMLEFT || corner == CORNER_BOTTOMRIGHT || DISPLAYTOP;
|
||||
NONE = corner == CORNER_NONE;
|
||||
}
|
||||
|
||||
for (auto PCURRENT = PNODE; PCURRENT && PCURRENT->pParent; PCURRENT = PCURRENT->pParent.lock()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue