Repository navigation
Conversation
A lone Win release opened Windows' Start along with ours: the E8 sent from the release hook was queued behind the release already being dispatched, so the shell sometimes saw no other key in time. Swallow the real release and hand the shell an E8 followed by a synthetic Win-up (our hook skips injected events). Chords are untouched: a Win+key clears WIN_ALONE before the release, so that path never runs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In overlay mode (real explorer.exe running), pressing the Win key to open WinRust's Start menu sometimes also opened Windows' own Start menu — until the Windows Start was dismissed. The Win key itself toggled wrong; a second Win press would clear it.
Cause
kb_hookinjected the0xE8(unused-key) chord on a lone Win release, but the real Win-up event was already queued ahead of that injection. The shell's Start handler sometimes saw the Win-up with no intervening key and opened the native Start menu.Fix
return 1) when the Win key was pressed alone.0xE8followed by a synthetic Win-up, so the shell always sees an intervening key and never opens its own Start.WIN_ALONEbefore the release, so they fall through unchanged.Files:
plugins/topbar/src/run.rs(kb_hookWin block),plugins/topbar/src/main.rs(newkey_uphelper).Tested
C:\Program Files\topbar\topbar.exeand running; lone Win taps open only WinRust Start, Win toggle still closes on second press.