Skip to content

Native window controls for borderless app windows - #93

Open
R44VC0RP wants to merge 1 commit into
devfrom
window-controls
Open

R44VC0RP wants to merge 1 commit into
devfrom
window-controls

Conversation

@R44VC0RP

@R44VC0RP R44VC0RP commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Lets apps that draw their own title bar on Windows and Linux (Clip does) use real window controls:

  • Tx::minimize() / AppHandle::minimize() now minimize normal borderless app windows (overlays, panels and launchers still refuse).
  • New Tx::toggle_maximize(): maximize or restore after the handler, sharing the native path of the title-bar double click off macOS.
  • Resizable borderless app windows get a 6 pt edge and corner band with the native resize cursor and drag, hit before content (so a full-window .window_drag() region can't swallow it).
  • Borderless app windows on Windows request the system shadow.

macOS titled windows and AppKit's double-click preference are unchanged.

Verified: rune and rune-kit test suite on macOS (2,366 passed), clippy unchanged from e6371c4, 16 edge-geometry cases, cross-checks for x86_64 Linux GNU and Windows MSVC (with blake3/pure). Native Windows and Linux runs come next, in Clip.

Let custom title bars minimize normal Windows and Linux windows rather than
rejecting all borderless windows. Add Tx::toggle_maximize to the deferred
window frame requests and share its native maximize/restore operation with
title-bar double clicks off macOS. Keep AppKit's double-click preference.

On resizable borderless app windows, reserve six logical points along the
edges and corners for the native resize cursor and drag. Hit the frame
before dispatching a press to content, including a full-window drag region.
Request the system shadow for these borderless Windows app windows, fixed
size or resizable. Leave overlays, panels and launchers out.

Verified the rune and rune-kit build, markdown-enabled test suite, full
workspace/all-targets check, and file/folder size gate on macOS. Clippy
exited successfully with the same warnings as the base revision. Checked
16 edge geometry cases and cross-checked Rune for x86_64 Linux GNU and
Windows MSVC. Windows used blake3/pure because the default assembly build
requires ml64.exe. Native Windows and Linux interaction remains untested.
R44VC0RP added a commit to anomalyco/clip that referenced this pull request Nov 5, 2026
Pins anomalyco/rune#93 (window-controls), which lets borderless app
windows minimize, adds Tx::toggle_maximize, a 6 pt edge resize band and
the Windows system shadow. The Windows and Linux title bar's maximize
button now calls toggle_maximize (it did nothing); minimize works
through the existing Tx::minimize.

Verified on macOS: cargo build clean; the review opens and exports
with the new Rune (macOS windows are unaffected by the change). Windows
and Linux behaviour is checked on exon-desk and exonbox next.

This branch has not been deployed

No deployments
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