From fb7b4db0ea267de7ed6d48e71f03bdb961fc1b9f Mon Sep 17 00:00:00 2001 From: ahmadlgohary Date: Tue, 23 Dec 2025 13:34:20 +0200 Subject: [PATCH] Fixed issue where notifications were sent after operation cancellation and where clipboard not retaining the screenshot after operation cancellation --- hyprshot | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hyprshot b/hyprshot index 0fb976f..4980d71 100755 --- a/hyprshot +++ b/hyprshot @@ -110,6 +110,10 @@ function save_geometry() { local geometry="${1}" local output="" + if ! grep -Pq '^\d+,\d+\s+\d+x\d+$' <<< "$geometry"; then + return 1 + fi + if [ $RAW -eq 1 ]; then grim -g "${geometry}" - return 0