commit 2c5801c
hovercats
·
2025-04-17 17:04:15 +0000 UTC
parent 5386af7
fullscreen: fix issue with script affecting the wrong window when re setting border upon exiting fullscreen. this seems to happen if the cursor is move above a window existing underneath our fullscreened window, when we exit fullscreen. this leaves us with our previously fullscreened window without borders, and the other window with messed up border
1 files changed,
+3,
-0
+3,
-0
1@@ -11,6 +11,9 @@ if (~ $#* 0) {
2 exit 1
3 }
4
5+# move cursor to top left corner of window avoiding borders getting messed up
6+wmp -a `{wattr xy `{pfw}}
7+
8 # unset fullscreen state if wid is in fullscreen
9 test -f $FSFILE && wtp `{cat $FSFILE} && chwb -s $BW -c $ACTIVE `{pfw}
10