Quattro clipboard image preview renders oversized and covers the desktop
What happened
After upgrading to Omarchy 4.0.0 (Quattro), the native clipboard history opened with SUPER + CTRL + V can show an image preview extremely large, covering most or all of the desktop. The preview is not usefully bounded to the clipboard panel.
Steps to reproduce
- Run Omarchy 4.0.0.
- Copy a tall or high-resolution image, such as a screenshot.
- Press
SUPER + CTRL + Vto open clipboard history. - Select the image entry.
- Observe that the image preview is oversized and covers the surrounding desktop / appears much larger than expected.
Expected behavior
The image preview should remain contained within the clipboard history panel, preserving aspect ratio and respecting the panel's bounds. Very tall or wide images should be letterboxed or scaled down rather than expanding the visible UI.
Actual behavior
The selected image is displayed extremely large and visually covers the desktop. The issue is especially apparent with a tall screenshot. The locally captured reproduction image is PNG, 1312 x 3168 pixels, approximately 6.3 MB.
System details
- Omarchy: 4.0.0-1
- Kernel: 7.1.7-arch1-1
- Quickshell: 0.3.0.r20.g28771c7-1
- GPU: NVIDIA GB202 / RTX 5090 D
- Displays: XMD Mi TV 3840x2160 at scale 2, plus 5120x1440 monitor at scale 1.6
Investigation
The new native implementation is /usr/share/omarchy/shell/plugins/clipboard/Clipboard.qml. Its image preview uses Image.fillMode: Image.PreserveAspectFit inside the right-hand preview pane, so this may be a Quickshell/Qt sizing or scaling interaction rather than the clipboard image itself. The captured image file is valid and has normal dimensions.
Related reports found, but not duplicates:
- #3122: Walker preview persists when switching menus; closed/fixed.
- #4316: Walker UTF-8 clipboard crash; closed.
- #6568: large text clipboard entries freezing the picker; closed.
This report is specifically about the Quattro native clipboard image preview sizing/geometry.
I reproduced this on Omarchy 4.0.0-1 and installed a local user-plugin workaround.
Local evidence:
- Omarchy 4.0.0-1
- Quickshell 0.3.0.r20.g28771c7-1
- Kernel 7.1.7-arch1-1
- Reproduction image: PNG 1312 x 3168, ~6.3 MB
The native clipboard plugin is now cloned to ~/.config/omarchy/plugins/derekszen.clipboard/. I changed the card geometry to enforce both a maximum and a minimum size instead of allowing the card dimensions to become invalid/degenerate on the scaled multi-monitor layout:
property int cardWidth: Math.min(Style.space(875), Math.max(Style.space(520), panel.width - Style.gapsOut * 2))
property int cardHeight: Math.min(Style.space(600), Math.max(Style.space(360), panel.height - Style.gapsOut * 2))
The shell hot-reloaded the cloned plugin successfully. The clipboard overlay is now mapped as a bounded full-screen overlay, and the preview remains constrained by the card and its Image.PreserveAspectFit container.
This is a local workaround, not yet confirmed as the upstream patch. The likely upstream fix should also account for the panel/window geometry on scaled multi-monitor setups, not only image dimensions.
Follow-up reproduction: when navigating down through the clipboard history, the image preview can appear to disappear because the native picker keeps the preview pane bound to selectedIndex even before keyboard cursor navigation is active. I made a local user-plugin fix so the preview pane is only populated while cursorActive is true:
property var activeRow: displayModel.count > 0 && root.cursorActive && root.selectedIndex >= 0 && root.selectedIndex < displayModel.count ? displayModel.get(root.selectedIndex) : null
This prevents an image preview from being rendered as a stale/background-looking pane when the list selection is not actively focused. The earlier bounded card geometry workaround remains installed. Both changes are in ~/.config/omarchy/plugins/derekszen.clipboard/ and were hot-reloaded by the running shell.
Correction to my earlier update: the previous cursorActive change was not a real fix and did not address the rendering failure. I verified that the clone is active after restarting the shell (derekszen.clipboard enabled; omarchy.clipboard disabled).
The stronger local workaround now applied is to constrain Qt image loading/rendering to the actual preview dimensions and disable stale image caching:
sourceSize.width: width
sourceSize.height: height
fillMode: Image.PreserveAspectFit
horizontalAlignment: Image.AlignHCenter
verticalAlignment: Image.AlignTop
asynchronous: false
cache: false
This is applied to both the list thumbnail and the detail preview. The card remains bounded as in the previous comment. Fresh-image testing shows the overlay stays bounded and no image is rendered outside/behind it; however, the detail preview is currently rendering as a black/empty rectangle, so this workaround is not yet a confirmed complete fix. The likely remaining issue is the source URL/image loading path or Qt rendering of the copied local PNG, rather than panel geometry alone.
I tried to reproduce this on a worker VM (stock Omarchy ISO install, real Hyprland), using a 1312x3168 PNG copied with wl-copy and opening the clipboard history. I couldn't reproduce it: the preview stayed inside the right half of the card in every case.
What I ran, with current quattro (902fd8aebd98b6eedaa58276886a2f9f2876755f) and with the v4.0.0 Clipboard.qml you were running:
- one output at scale 1, 1.6 and 2
- two outputs at once, 1280x800 at scale 2 beside 5120x1440 at scale 1.6, opening the panel on each
In the code, the preview pane is clipped (shell/plugins/clipboard/Clipboard.qml:530-574), and the image is anchored inside it with PreserveAspectFit. Neither I nor the second opinion found a way for it to draw outside the card. The minimum card size from your first comment doesn't change that: Qt doesn't draw an image with a zero or negative size, so it wouldn't explain an oversized one.
Since 4.0.0, quattro has changed how the overlay window opens (48de7823d, #13419, then 0a55a3c55, #14458). The panel now stays transparent until the window has the monitor's full size and its scale has settled. Before that, a fractional-scale display could draw the first frames at the wrong scale. That could be what you saw, but it's only a guess: I couldn't reproduce the bug on either version, and this VM has no NVIDIA GPU.
What would settle it:
- Try current
quattro:git clone https://github.com/basecamp/omarchy ~/omarchy-6990 && git -C ~/omarchy-6990 checkout 902fd8aebd98b6eedaa58276886a2f9f2876755f && omarchy dev link ~/omarchy-6990, then reboot.omarchy dev unlinkputs you back. - If it still happens, please attach a screenshot of the whole screen with the preview open, say which monitor the panel opened on, and include the output of
hyprctl monitorsandomarchy-debug.
The second opinion was Codex Medium. It reached the same conclusions (no mechanism found, the minimum size isn't a fix, no duplicate), so it isn't independent confirmation. It also pointed me to #14458, which I checked. This is now waiting on your test of the commit above.