Skip to content

fix(fullscreen): kill the Windows black bar and smooth the F11 toggle#76

Merged
Razee4315 merged 1 commit into
mainfrom
fix/fullscreen-windows-blackbar
Jun 16, 2026
Merged

fix(fullscreen): kill the Windows black bar and smooth the F11 toggle#76
Razee4315 merged 1 commit into
mainfrom
fix/fullscreen-windows-blackbar

Conversation

@Razee4315

Copy link
Copy Markdown
Owner

Follow-up fix to #75 (F11 fullscreen), addressing Windows feedback.

Problems fixed

On our frameless (decorations:false) window on Windows:

  1. Black bar at the bottom — entering fullscreen while maximized left a black strip where the taskbar was / overflowed the right edge (a known tao bug). Now we unmaximize first and restore the maximized state on exit.
  2. F11 wouldn't exitisFullscreen() returns unreliable values for frameless windows, so we now track the state ourselves.
  3. Square button while fullscreen produced the broken state — it now exits fullscreen (and shows an "exit fullscreen" icon); title-bar double-click does the same.

Polish

The unmaximize→fullscreen step resizes the window twice, so the content visibly snapped. An opaque cover drops in instantly, the window resizes behind it, then fades out — a smooth dip instead of a jump.

Adds the core:window:allow-unmaximize capability.

Testing

  • tsc --noEmit clean
  • Verified live in tauri dev on Windows: all three cases clean, transition smooth.

The first cut of F11 fullscreen had three problems on Windows with our
frameless (decorations:false) window:

- Entering fullscreen while maximized left a black bar where the taskbar
  was / overflowed the right edge (a known tao bug). Now we unmaximize
  first and restore the maximized state on exit.
- F11 wouldn't exit fullscreen because isFullscreen() returns unreliable
  values for frameless windows. We now track the state ourselves.
- The square title-bar button (and title-bar double-click) toggled
  maximize underneath an active fullscreen, producing the broken state.
  While fullscreen they now exit fullscreen, and the button shows an
  "exit fullscreen" icon.

Also masks the mid-transition reflow: the unmaximize->fullscreen step
resizes the window twice, so the content visibly snapped. An opaque cover
drops in instantly, the OS resizes behind it, then it fades out — the
change reads as a smooth dip instead of a jump.

Adds the core:window:allow-unmaximize capability.
@Razee4315 Razee4315 merged commit f978971 into main Jun 16, 2026
@Razee4315 Razee4315 deleted the fix/fullscreen-windows-blackbar branch June 16, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant