Add Chrome Top Resize Blocker mod#2532
Open
r3conx wants to merge 1 commit intoramensoftware:mainfrom
Open
Conversation
This mod prevents resizing and blocks mouse input in a designated zone at the top of a non-maximized Chrome window, enhancing tab access.
m417z
reviewed
Oct 12, 2025
| // @version 1.0 | ||
| // @author r3con | ||
| // @github https://github.com/r3conx | ||
| // @twitter https://twitter.com/x_r3con |
Member
There was a problem hiding this comment.
To verify your X (Twitter) account, please send me (https://twitter.com/m417z) a direct message with the following content:
I attest that I'm the sole owner of both this Twitter account (https://twitter.com/x_r3con) and the following GitHub account: https://github.com/r3conx
| // If the result indicates the top resize handles... | ||
| if (result == HTTOP || result == HTTOPLEFT || result == HTTOPRIGHT) { | ||
| POINT cursor; | ||
| GetCursorPos(&cursor); |
Member
There was a problem hiding this comment.
Why not use lParam here just like for WM_MOUSEMOVE? Here and in the other places where GetCursorPos is called.
| /* | ||
| - protectedZonePixels: 7 | ||
| $name: Protected Top Zone (pixels) | ||
| $description: The height of the protected zone at the top of the window. Resizing and mouse input will be blocked in this zone when the window is positioned at the top of the screen. A full restart of Chrome is required for changes to this setting to take effect. |
Member
There was a problem hiding this comment.
Why restarting Chrome is required?
m417z
reviewed
Oct 12, 2025
| // ==WindhawkMod== | ||
| // @id chrome-top-resize-blocker | ||
| // @name Chrome Top Resize Blocker | ||
| // @description Prevents resizing and blocks the mouse cursor in a small zone at the top edge of a non-maximized Chrome window when it's positioned at the top of the screen. Useful for easily accessing browser tabs without accidentally resizing the window. |
Member
There was a problem hiding this comment.
The description is quite long, I suggest shortening it a bit to have it displayed as 3 rows in the Windhawk mod preview card. not 5 rows like it's now.
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.
This mod prevents resizing and blocks mouse input in a designated zone at the top of a non-maximized Chrome window, enhancing tab access.