Skip to content

make sure Windows quake mode window is correctly sized and receives focus#9891

Merged
acarl005 merged 3 commits into
masterfrom
andy/CODE-1787-fix-windows-quake-mode
May 4, 2026
Merged

make sure Windows quake mode window is correctly sized and receives focus#9891
acarl005 merged 3 commits into
masterfrom
andy/CODE-1787-fix-windows-quake-mode

Conversation

@acarl005
Copy link
Copy Markdown
Contributor

@acarl005 acarl005 commented May 2, 2026

Description

This PR fixes #6507

The problem was that the quake mode window would not receive focus and would be incorrectly sized if a different app had focus when the quake mode window was summoned.

Testing

Showing the quake mode window when a different app has focus now works.

Changelog Entries for Stable

CHANGELOG-BUG-FIX: [Windows] Fix hotkey window.

@acarl005 acarl005 requested a review from peicodes May 2, 2026 07:18
@cla-bot cla-bot Bot added the cla-signed label May 2, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 2, 2026

@acarl005

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz


impl WindowManager {
/// Returns the active Warp window. This will return an error if a different app's window is
/// active.
Copy link
Copy Markdown
Contributor Author

@acarl005 acarl005 May 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"This will return an error if a different app's window is active."

This bit is the crux of the issue. Added fn get_foreground_monitor to compensate for this behavior.

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR updates Windows window focus behavior and monitor selection so the hotkey/quake window can be sized against the foreground app's monitor and explicitly focused after being shown.

Concerns

  • No blocking correctness or security concerns found in the annotated diff.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@acarl005 acarl005 merged commit c65ae25 into master May 4, 2026
26 checks passed
@acarl005 acarl005 deleted the andy/CODE-1787-fix-windows-quake-mode branch May 4, 2026 17:51
@peicodes peicodes added this to the 2026 Week 19 (May 4 - 8) milestone May 4, 2026
wolverine2k pushed a commit to wolverine2k/warp that referenced this pull request May 5, 2026
Leejaywell pushed a commit to Leejaywell/warp that referenced this pull request May 5, 2026
Leejaywell pushed a commit to Leejaywell/warp that referenced this pull request May 5, 2026
Leejaywell added a commit to Leejaywell/warp that referenced this pull request May 5, 2026
Cherry-picked from upstream:
- fix: highlight C++ header extensions (warpdotdev#9388)
- Run executable shell scripts in the terminal (warpdotdev#9503)
- Revert schema generator binary recompilation fix (warpdotdev#9676)
- Remove stray backticks from Windows installer README (warpdotdev#9691)
- Fix chord shortcuts on Windows non-Latin keyboard layouts (warpdotdev#9476)
- Scroll output with Page Up/Down from prompt (warpdotdev#9624)
- Respect Markdown Viewer setting for .md links in AI rules/facts panel (warpdotdev#9699)
- fix: disable reset grid checks for restored blocks on Windows (warpdotdev#9987)
- add RedirectionGuard=no to windows-installer.iss (warpdotdev#9863)
- Windows quake mode window correctly sized (warpdotdev#9891)
- fix: update rand to 0.9.4 (GHSA-cq8v-f236-94qc) (warpdotdev#10060)
- Fix diff button when Show code review button toggle is off (warpdotdev#9600)
- Fix freshly cloned repo stuck in loading state (warpdotdev#9998)
- Fix terminal text selection not auto-scrolling when dragging (warpdotdev#9448)
- Resolve conflict markers from 3f0ac51 and edac651
zerx-lab pushed a commit to zerx-lab/zap that referenced this pull request May 8, 2026
trungtai1805 pushed a commit to trungtai1805/warp that referenced this pull request May 9, 2026
lawsmd pushed a commit to lawsmd/cortex that referenced this pull request May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Focus not working when opening warp using global hot keys on windows

2 participants