commit 5386af7

hovercats  ·  2025-04-17 16:46:28 +0000 UTC
parent d85adc8
fullscreen: add some comments, maybe its less confusing to look at
1 files changed,  +4, -0
+4, -0
 1@@ -11,10 +11,14 @@ if (~ $#* 0) {
 2 	exit 1
 3 }
 4 
 5+# unset fullscreen state if wid is in fullscreen
 6 test -f $FSFILE && wtp `{cat $FSFILE} && chwb -s $BW -c $ACTIVE `{pfw}
 7 
 8+# test if our wid is in $FSFILE, which means our window is in fullscreen state,
 9+# then remove the file so we can fullscreen later
10 if (test -f $FSFILE && grep -q $1 $FSFILE) rm -f $FSFILE
11 
12+# put current window in fullscreen, and save needed data about it
13 if not {
14     wattr xywhi $1 >$FSFILE
15     chwb -s 0 $1