From 797ee2686c67c93b220563098d948bec04b033ff Mon Sep 17 00:00:00 2001 From: Oh Xyz Date: Thu, 2 Jul 2026 09:09:40 +1000 Subject: [PATCH 1/2] feat: enable drag on detached glass on touch screen --- package.json | 4 ++-- src/css/detached-glass.css | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 90f3fbc..3111f53 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "bwin", "description": "A tiling window manager for web browsers", "type": "module", - "version": "0.6.0", + "version": "0.6.1", "repository": { "type": "git", "url": "git+https://github.com/bhjsdev/bwin.git" @@ -31,7 +31,7 @@ "./bwin.css": "./dist/bwin.css" }, "scripts": { - "dev": "vite --port 7100", + "dev": "vite", "build": "vite build", "build:watch": "vite build --watch", "test": "vitest", diff --git a/src/css/detached-glass.css b/src/css/detached-glass.css index f02ebfe..d298685 100644 --- a/src/css/detached-glass.css +++ b/src/css/detached-glass.css @@ -41,6 +41,8 @@ bw-glass[detached] { } bw-glass[detached] > bw-glass-header[can-drag='true'] { + touch-action: none; + &:active { cursor: move; } From 981b48255968a29c29dffeeb84e7e4b0115cd206 Mon Sep 17 00:00:00 2001 From: Oh Xyz Date: Thu, 2 Jul 2026 09:31:37 +1000 Subject: [PATCH 2/2] ci: fail dev-publish guard on version bump for visibility --- .github/workflows/publish.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 442a62a..f3c9f65 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -97,38 +97,33 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Decides whether dev-publish should run. A version bump means a formal release is - # being prepared, so a dev pre-release would be wrong — skip it. + # Fails on a version-bump merge so the run shows red, not a misleading green tick. + # dev-publish is skipped automatically via its failed `needs`. check-dev-publish: if: >- (github.event_name == 'pull_request' && github.event.pull_request.merged == true) || (github.event_name == 'workflow_dispatch' && inputs.dev_release == true) runs-on: ubuntu-latest - outputs: - skip: ${{ steps.guard.outputs.skip }} - steps: - name: Check out repository uses: actions/checkout@v6 with: fetch-depth: 0 - - name: Detect version bump - id: guard + - name: Fail if the merged PR bumped the version if: github.event_name == 'pull_request' run: | head_ver="$(node -p "require('./package.json').version")" git show "${{ github.event.pull_request.base.sha }}:package.json" > /tmp/base-package.json base_ver="$(node -p "require('/tmp/base-package.json').version")" if [ "$base_ver" != "$head_ver" ]; then - echo "::notice::package.json version changed ($base_ver -> $head_ver); skipping dev publish." - echo "skip=true" >> "$GITHUB_OUTPUT" + echo "::error::package.json version changed ($base_ver -> $head_ver) — dev publish skipped." + exit 1 fi # Ungated (no `environment:`): auto on merge to main, or manual via `dev_release`. dev-publish: needs: check-dev-publish - if: needs.check-dev-publish.outputs.skip != 'true' runs-on: ubuntu-latest permissions: contents: read