What Corner Radius Does
Corner radius applies rounded corners to the blur region beneath windows. The rounding is applied in pixels and affects how the blurred background is clipped at the window edges.- Range: 0.0 to unlimited (typically 0-20 pixels)
- Default: 0.0 (no rounding)
- Input: Decimal spin box
Corner radius only affects the blur region, not the window shape itself. The window content and decorations remain unchanged - only the blurred background beneath is rounded.
The “Korners” Bug
The “korners” bug is a long-standing visual issue in KWin where the blur region of a window with rounded corners extends beyond the visible window border, creating rectangular “leaks” of blur at the corners.Visual Description
Imagine a window with rounded corners:- The window frame is rounded (smooth curves at corners)
- The blur region is rectangular (extends to square corners)
- Result: Small rectangular patches of blur are visible “leaking” behind the rounded corners
Why It Happens
Many modern applications and window decorations use rounded corners for aesthetics. However, the blur region is often defined as a simple rectangle, which doesn’t account for the corner rounding. Better Blur DX’s corner radius feature solves this by clipping the blur region to match the window’s corner radius.How to Fix the Korners Bug
- Identify the window’s corner radius - Most modern themes use 8-12 pixel corner radius
- Set Corner Radius to match - Enter the same value in Better Blur DX settings
- Test the result - The blur should now follow the rounded corners precisely
Common Corner Radius Values
- Breeze theme: 8 pixels (default for most KDE windows)
- Modern GTK apps: 10-12 pixels
- Chromium-based browsers: 10 pixels (on some platforms)
If you’re unsure of your window’s corner radius, start with 8 pixels (the Breeze default) and adjust up or down until the korners bug is eliminated.
When Corner Radius is Ignored
Better Blur DX automatically skips corner radius rounding in certain situations to ensure correct behavior:Plasma Surfaces
Windows that provide their own blur regions (Plasma panels, widgets, KRunner, menus) are not affected by the corner radius setting. These surfaces:- Define their own precise blur regions
- Already include proper corner rounding in their regions
- Are assumed to be correctly configured by the theme
Maximized and Fullscreen Windows
Corner radius is automatically disabled for:- Completely maximized windows - Corners touch screen edges, no rounding needed
- Fullscreen windows - Cover entire screen, corners not visible
- Vertically maximized windows - Top and bottom touch screen edges (only affects top/bottom corners)
- Horizontally maximized windows - Left and right touch screen edges (only affects side corners)
Windows with Provided Radius
Some windows explicitly specify their own corner radius (typically from the Breeze decoration’s “Round bottom corners of windows with no borders” option). In these cases:- The window-provided radius takes priority
- Better Blur DX uses the window’s radius values
- Your configured corner radius is used as a fallback only
Interaction with Blur Decorations
When Blur window decorations as well is enabled, the corner radius behavior changes:Without Blur Decorations
On windows with decorations (title bars), the corner radius typically only affects the bottom corners because:- The top of the window has a title bar (assumed not blurred)
- Only the content area corners need rounding
With Blur Decorations
When decorations are blurred, corner radius affects all four corners because:- The entire window frame is blurred (including title bar)
- All corners may need rounding to prevent korners
In version 2.1.0, a bug was fixed that caused incorrect corner radius application when both “Round bottom corners of windows with no borders” (Breeze setting) and “Blur decorations as well” were enabled simultaneously.
Client-Side Decorations (CSD)
Windows using client-side decorations (like many GTK applications) include their window decorations as part of the content area. For these windows:- Corner radius applies to all four corners by default
- The entire window (content + built-in decorations) is treated as one unit
- No special bottom-only rounding behavior
Technical Details
Blur Region Clipping
The corner radius is implemented as part of the blur rendering pipeline. The blurred background texture is:- Rendered at full size
- Clipped using a rounded rectangle mask
- Composited behind the window
Performance Impact
Corner radius uses a specialized rounded shader when a non-zero value is set. The performance impact is minimal on modern GPUs, but you may notice:- Slightly higher GPU usage with many blurred windows
- No impact when corner radius is 0.0 (uses faster rectangular shader)
Compatibility with Other Effects
Corner radius works alongside:- Wobbly Windows - Blur fades during window movement/resize (as of v2.1.0)
- Magic Lamp - Blur disabled during minimize animation
- Window transforms - Blur temporarily disabled during transformations