From 04962ffed1273ada94a8f0c6a6192e3d4b6b152f Mon Sep 17 00:00:00 2001 From: bbedward Date: Fri, 3 Jul 2026 15:50:06 -0400 Subject: [PATCH] desktop widgets: fix rounding of system monitor graphs fixes #2356 --- .../Modules/BuiltinDesktopPlugins/SystemMonitorWidget.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quickshell/Modules/BuiltinDesktopPlugins/SystemMonitorWidget.qml b/quickshell/Modules/BuiltinDesktopPlugins/SystemMonitorWidget.qml index 4156a0f0f..8402842a9 100644 --- a/quickshell/Modules/BuiltinDesktopPlugins/SystemMonitorWidget.qml +++ b/quickshell/Modules/BuiltinDesktopPlugins/SystemMonitorWidget.qml @@ -393,6 +393,10 @@ Item { ctx.clearRect(0, 0, width, height); if (!hist || hist.length < 2) return; + var r = Math.max(0, tile.radius); + ctx.beginPath(); + ctx.roundedRect(0, 0, width, height, r, r); + ctx.clip(); var maxVal = 100; if (tile.tileType === "net" || tile.tileType === "disk") { maxVal = 1;