summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2022-09-18 12:13:16 +0100
committervaxerski <vaxry@vaxry.net>2022-09-18 12:13:16 +0100
commitcf32d2808236bd3f12927953b652cc144a0c055f (patch)
tree8cc2a8c01dfc687b417e3212c15401b0e51c50b9 /src
parent5131a4acaf0f5319dc581ad0a26498b749ffd1e6 (diff)
fix groupbar being wonk on scaled
Diffstat (limited to 'src')
-rw-r--r--src/layout/DwindleLayout.cpp2
-rw-r--r--src/render/decorations/CHyprGroupBarDecoration.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp
index ccd3f5ae..a4ceefea 100644
--- a/src/layout/DwindleLayout.cpp
+++ b/src/layout/DwindleLayout.cpp
@@ -682,7 +682,7 @@ void CHyprDwindleLayout::fullscreenRequestForWindow(CWindow* pWindow, eFullscree
if (!g_pCompositor->windowValidMapped(pWindow))
return;
- if (on == pWindow->m_bIsFullscreen)
+ if (on == pWindow->m_bIsFullscreen || pWindow->m_iWorkspaceID == SPECIAL_WORKSPACE_ID)
return; // ignore
const auto PMONITOR = g_pCompositor->getMonitorFromID(pWindow->m_iMonitorID);
diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp
index 17a79a1d..7d218ce1 100644
--- a/src/render/decorations/CHyprGroupBarDecoration.cpp
+++ b/src/render/decorations/CHyprGroupBarDecoration.cpp
@@ -82,6 +82,8 @@ void CHyprGroupBarDecoration::draw(CMonitor* pMonitor, float a) {
if (rect.width <= 0 || rect.height <= 0)
break;
+ scaleBox(&rect, pMonitor->scale);
+
static auto *const PGROUPCOLACTIVE = &g_pConfigManager->getConfigValuePtr("dwindle:col.group_border_active")->intValue;
static auto *const PGROUPCOLINACTIVE = &g_pConfigManager->getConfigValuePtr("dwindle:col.group_border")->intValue;