fix: preview may not update its position (closes #5396)

This commit is contained in:
lwouis committed 2026-03-09 16:34:17 +01:00
1 parent 7d0eb278bf
commit dbadb2b4e5
1 file changed
+1 -1
+1 -1
View File
@@ -30,8 +30,8 @@ class PreviewPanel: NSPanel {
}
static func show(_ id: CGWindowID, _ preview: CALayerContents, _ position: CGPoint, _ size: CGSize) {
repositionAndResize(position, size)
if id != currentId {
repositionAndResize(position, size)
previewView.updateContents(preview, size)
}
if id != currentId || !Self.shared.isVisible {