input: only override dragging corner on floating (#5092)

Co-authored-by: djvs <djvs@users.noreply.github.com>
This commit is contained in:
djvs 2024-03-12 23:38:32 -04:00 committed by GitHub
parent c58fcfbce2
commit 893c55217b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -218,7 +218,7 @@ void IHyprLayout::onBeginDragWindow() {
// get the grab corner // get the grab corner
static auto RESIZECORNER = CConfigValue<Hyprlang::INT>("general:resize_corner"); static auto RESIZECORNER = CConfigValue<Hyprlang::INT>("general:resize_corner");
if (*RESIZECORNER != 0 && *RESIZECORNER <= 4) { if (*RESIZECORNER != 0 && *RESIZECORNER <= 4 && DRAGGINGWINDOW->m_bIsFloating) {
switch (*RESIZECORNER) { switch (*RESIZECORNER) {
case 1: case 1:
m_eGrabbedCorner = CORNER_TOPLEFT; m_eGrabbedCorner = CORNER_TOPLEFT;