Skip to content

Windows: a large image's window stays clear of the taskbar - #374

Merged
danjboyd merged 1 commit into
mainfrom
window-fits-work-area
Nov 10, 2026
Merged

danjboyd merged 1 commit into
mainfrom
window-fits-work-area

Conversation

@danjboyd

Copy link
Copy Markdown
Owner

On Windows, a large image now opens in a window that stays above the taskbar, so the status bar can be seen. On current main, a 4K capture's window runs under the taskbar.

What changes

  • Windows: the height limit for a large image's window now comes from the monitor's work area, the screen minus the taskbar. STWindowsVisibleFrame reads it with MonitorFromWindow and GetMonitorInfoW. Before, GNUstep reported the whole screen as the usable area.
  • GNUstep: the title bar and toolbar now count toward the height limit, and the centred window is moved clear of the taskbar or a panel.
  • Tests: CanvasStageProbe adds testWindowForALargeImageFitsTheVisibleFrame.

Results

I measured with a 3840×2160 image on Windows 11 at 100% scale. The screen is 2293×1334 and the work area 2293×1286.

main 611ce97 this branch
4K window (frame x, y, w, h) 58, 0, 2177, 1327 176, 56, 1941, 1214
Bottom edge 41 px below the work area 16 px above the taskbar
Status bar hidden under the taskbar visible ("3840 × 2160 px · PNG · 323 KB")
Small image, 1400×500 421, 333, 1450, 661 the same
  • CanvasStageProbe: 7 of 7 pass on Windows.
  • Linux checks on this exact commit: the default theme passes 41/41, and Adwaita passes 41 of 42 with one expected skip. Those runs used a private 1600×1000 Xvfb display.
  • After the Windows run, the defaults, clipboard, pointer and foreground window were restored and checked to match their earlier state.

Limits

  • I tested only one display. The case where a window sits on a second monitor is unverified.
  • I tested only at 100% scale.
  • The Windows run used this build swapped into the 0.3.6 packaged runtime, not a final 0.4 MSI.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AEr1tY2QmxWFSoDkDHs2DC

A 4K image opened 2137x1302 on a 2293x1302 screen, with the status bar under
the taskbar. GNUstep's visibleFrame is the whole screen, and the height limit
left out the title bar and toolbar. On Windows the limit now comes from the
monitor's work area; on GNUstep the title bar and toolbar count, and the
centred window is moved clear of the taskbar or a panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@danjboyd
danjboyd merged commit c30d669 into main Nov 10, 2026
4 checks passed
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