commit a1e0e72

hovercats  ·  2025-09-22 16:38:56 +0000 UTC
parent f864d15
fullscreen: add more comments for less obvious commands (from wmutils)
1 files changed,  +3, -3
+3, -3
 1@@ -23,9 +23,9 @@ if (test -f $FSFILE && grep -q $1 $FSFILE) rm -f $FSFILE
 2 
 3 # put current window in fullscreen, and save needed data about it
 4 if not {
 5-    wattr xywhi $1 >$FSFILE
 6-    chwb -s 0 $1
 7-    wtp `{wattr xywh `{lsw -r}} $1
 8+    wattr xywhi $1 >$FSFILE        # Print offsets, dimentions and window id
 9+    chwb -s 0 $1                   # Remove borders
10+    wtp `{wattr xywh `{lsw -r}} $1 # Teleport window into fullscreen
11 }
12 
13 focus $1