Add Hide File Explorer Focus Border#3972
Open
YuUNaO7122 wants to merge 2 commits into
Open
Conversation
Add Hide File Explorer Focus Border
m417z
reviewed
May 4, 2026
| // File Explorer item focus border. | ||
| if (partId == 3 && stateId == 1 && RectMatches(rc)) { | ||
| return S_OK; | ||
| } |
Member
There was a problem hiding this comment.
To reduce the change of unwanted matches here, have you considered checking the theme class as well? Here's an example:
windhawk-mods/mods/explorer-treeitem-tweaker.wh.cpp
Lines 957 to 971 in 930fda2
With a better match, perhaps it will be possible to also get rid of the size limits which are basically a workaround.
| /* | ||
| # Hide File Explorer Focus Border | ||
|
|
||
| Hides the white focus border around focused items in File Explorer. |
Member
There was a problem hiding this comment.
How about adding a screenshot to show what exactly it hides?
|
|
||
| Notes: | ||
| - This mod targets the modern File Explorer item focus border. | ||
| - It does not target the classic dotted focus rectangle on the desktop. |
Member
There was a problem hiding this comment.
You can link this mod here:
https://windhawk.net/mods/no-focus-rectangle
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.
Adds a new Windhawk mod: Hide File Explorer Focus Border.
This mod hides the white focus border around focused items in File Explorer by suppressing a specific DrawThemeBackgroundEx call.
Tested environment:
Notes:
Changelog
Initial release.
Mod authorship
If the submission is a new mod, please fill the form below.
This mod was created by:
Please select the appropriate option. Your selection will not affect acceptance criteria, but will help reviewers understand the context of the code and provide relevant feedback.