From e463a195f7cb07543e5b95729ba6d4a84923f411 Mon Sep 17 00:00:00 2001 From: Shresth Prasad Date: Tue, 24 Feb 2026 17:14:57 +0530 Subject: [PATCH] Fix invalid regexp in total_geo by escaping `+` --- tdrop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdrop b/tdrop index cf7fa74..4182711 100755 --- a/tdrop +++ b/tdrop @@ -986,7 +986,7 @@ wid_toggle() { # deal with percentages/negatives when no -m if ! $monitor_aware; then local total_geo total_width total_height - total_geo=$(xwininfo -root | gawk '/geometry/ {gsub("+.*",""); print $2}') + total_geo=$(xwininfo -root | gawk '/geometry/ {gsub("\\+.*",""); print $2}') # total_width=$(echo "$total_geo" | gawk -F 'x' '{print $1}') total_width=${total_geo%x*} # total_height=$(echo "$total_geo" | gawk -F 'x' '{print $2}')