fix build errors on Windows

This commit is contained in:
SoftFever
2026-08-13 23:26:33 +08:00
parent 81876a6ce6
commit 2179f5f670
2 changed files with 23 additions and 13 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ done
# --- main window ----------------------------------------------------------------------------
main="$(xdotool search --name "Untitled" 2>/dev/null | head -1 || true)"
if [ -n "$main" ]; then
xdotool windowmove "$main" 0 0 windowsize "$main" ${GEOM/x/ } 2>/dev/null || true
xdotool windowmove "$main" 0 0 windowsize "$main" "$screen_w" "$screen_h" 2>/dev/null || true
xdotool windowactivate "$main" 2>/dev/null || true
sleep 2
fi