Repository navigation
Commit 6364826
Window: fit the screen the window reopens on; the header bar is inside on Wayland
Review of 1.0.1 found three gaps in the first-size fit:
- On X11 the window was fitted to the primary monitor, but the
window-state plugin then moved it back to its saved place, which can be
on a smaller screen (a docked laptop closed on its 1366x768 panel), so
the composer sat under the panel again. The fit now reads the plugin's
saved record and picks the monitor the plugin restores to, with the
plugin's own rule (a corner of the saved rectangle on a monitor, the
place before maximizing for a maximized window); without one, the
primary monitor. A window left low or far right is then moved inside
that screen's work area right after the plugin's move.
- On Wayland the smallest screen forced a maximized window on every
screen, which the user could not undo (the plugin only ever maximizes).
The window now fits every screen and opens maximized only when none of
them holds the 520x640 minimum.
- GTK's header bar is inside the size the window asks for on Wayland
(1.0.0's 1380x920 window measured 920 px with it on Plasma; Weston
reports 1380x920 geometry with 873 px of content), so the 48 px title
bar room was taken twice: 1229x643 on 1366x768 left about 596 px of
content. The room now applies only on X11, where the window manager's
frame is outside; Wayland gets 1229x691.
The Wayland or X11 display comes from GDK, as tao decides on its header
bar (the AppImage runs on X11). 16 window_size tests, including the docked
laptop, a 200% screen beside a large one, the 1.0.0 grown record and the
work-area move.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 45b0d53 commit 6364826
4 files changed
Lines changed: 686 additions & 88 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
423 | | - | |
| 422 | + | |
| 423 | + | |
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
481 | | - | |
482 | | - | |
483 | | - | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
484 | 487 | | |
485 | | - | |
| 488 | + | |
486 | 489 | | |
487 | 490 | | |
488 | 491 | | |
| |||
497 | 500 | | |
498 | 501 | | |
499 | 502 | | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
500 | 514 | | |
501 | 515 | | |
502 | 516 | | |
| |||
0 commit comments