WebPanel: stay shown over the game until closed #14

Open
AwfulWaffle wants to merge 3 commits from AwfulWaffle/RynthCore:webpanel-persist into main

2026-11-13

Daniel Wallace
WebPanel: raise over the foreground game via topmost and back
While the game is the foreground window, SetWindowPos(HWND_TOP) puts no
window over it, not even a new window of another process (probed in game).
The panel then stayed behind the game after every click on the game.
HWND_TOPMOST then HWND_NOTOPMOST (both NOACTIVATE) does put it over the
game, and the game keeps the foreground. Use that only at the top of the
normal band (no other program's window above the game), so it never
covers another program; skip a topmost game; back off if it keeps failing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 18:17:47 -08:00
Daniel Wallace
WebPanel: keep the panel over the game's own windows, not over other programs
Review follow-ups: count game-owned windows (RynthCore bar, floating
panels) and the panel's own dialogs, by root owner, as part of the game
and the panel when finding the slot; set the z-slot before the first
show; at the top of the normal band, accept only topmost windows above
the panel, so a topmost game-owned window cannot leave the panel over
another program.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 12:40:06 -08:00
Daniel Wallace
WebPanel: stay shown over the game until closed
The panel hid whenever the foreground window left the game process, so a
click on another program (and, reportedly, in the game) made it vanish.
It now stays shown while the game window is shown and not minimized, and
is kept directly above the game in the z-order: over the game, under any
window the player brings over the game, so it never covers another program.
Closing it (X, Escape, Alt+F4, the plugin, /rc webpanel close) is still
the only way it goes away while the game shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 12:32:59 -08:00