-
Notifications
You must be signed in to change notification settings - Fork 182
Fixes bug #2729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fixes bug #2729
Changes from all commits
8551de4
3547fef
e372635
6abecc4
eb122de
5a98347
3946695
7ac2d37
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
|
Check warning on line 1 in .vscode/c_cpp_properties.json
|
||
| "configurations": [ | ||
| { | ||
| "name": "windows-gcc-x64", | ||
| "includePath": [ | ||
| "${workspaceFolder}/**" | ||
| ], | ||
| "compilerPath": "gcc", | ||
| "cStandard": "${default}", | ||
| "cppStandard": "${default}", | ||
| "intelliSenseMode": "windows-gcc-x64", | ||
| "compilerArgs": [ | ||
| "" | ||
| ] | ||
| } | ||
| ], | ||
| "version": 4 | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,24 @@ | ||||||
| { | ||||||
|
Check warning on line 1 in .vscode/launch.json
|
||||||
| "version": "0.2.0", | ||||||
| "configurations": [ | ||||||
| { | ||||||
| "name": "C/C++ Runner: Debug Session", | ||||||
| "type": "cppdbg", | ||||||
| "request": "launch", | ||||||
| "args": [], | ||||||
| "stopAtEntry": false, | ||||||
| "externalConsole": true, | ||||||
| "cwd": "e:/eProject/windhawk-mods/mods", | ||||||
| "program": "e:/eProject/windhawk-mods/mods/build/Debug/outDebug", | ||||||
|
||||||
| "program": "e:/eProject/windhawk-mods/mods/build/Debug/outDebug", | |
| "program": "${workspaceFolder}/build/Debug/outDebug", |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,59 @@ | ||||
| { | ||||
| "C_Cpp_Runner.cCompilerPath": "gcc", | ||||
| "C_Cpp_Runner.cppCompilerPath": "g++", | ||||
| "C_Cpp_Runner.debuggerPath": "gdb", | ||||
| "C_Cpp_Runner.cStandard": "", | ||||
| "C_Cpp_Runner.cppStandard": "", | ||||
| "C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/VR_NR/Community/VC/Auxiliary/Build/vcvarsall.bat", | ||||
|
||||
| "C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/VR_NR/Community/VC/Auxiliary/Build/vcvarsall.bat", |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |||||
| // @name Win+D per monitor(show desktop) | ||||||
| // @description Press Win+D to only manage the windows on the monitor where the mouse is located. | ||||||
| // @description:zh-CN 按下Win+D时 只最小化/还原鼠标所在显示器的窗口 | ||||||
| // @version 1.1.20250811 | ||||||
| // @version 1.1.20251123 | ||||||
| // @author easyatm | ||||||
| // @github https://github.com/easyatm | ||||||
| // @include explorer.exe | ||||||
|
|
@@ -35,6 +35,13 @@ where the mouse cursor is located. | |||||
|
|
||||||
| ## Changelog | ||||||
|
|
||||||
| ### 2025-11-23 (v1.1.20251123) | ||||||
| - Fixed window control to use ShowWindow instead of PostMessage for better compatibility with windows that have popups, such as Excel | ||||||
| - 修复窗口控制,使用 ShowWindow 而非 PostMessage,以更好地兼容带有弹出窗口的窗口,如 Excel | ||||||
|
|
||||||
| Fixes: | ||||||
| - https://github.com/ramensoftware/windhawk-mods/issues/2709 | ||||||
|
|
||||||
| ### 2025-08-11 (v1.1.20250811) | ||||||
| - Added option to ignore topmost tool windows without title bar during Win+D operation | ||||||
| - 新增忽略置顶且无标题栏的工具窗口选项,在Win+D操作时保持这类窗口可见 | ||||||
|
|
@@ -78,7 +85,8 @@ using namespace std; | |||||
| #define log(...) Wh_Log(L"%s", ansi_unicode(format(__VA_ARGS__)).c_str()); | ||||||
|
|
||||||
| // 设置变量 | ||||||
| struct { | ||||||
| struct | ||||||
| { | ||||||
| bool ignoreTopmostNoTitleBarWindows; | ||||||
| int minWindowSize; | ||||||
| } g_settings; | ||||||
|
|
@@ -283,9 +291,10 @@ class WindShowDesktop | |||||
| GetWindowTextA(hWndCcc, windowTitle, sizeof(windowTitle)); | ||||||
|
|
||||||
| // 输出窗口信息 | ||||||
| log("Processing window: class='{}', title='{}', size={}x{}, hwnd=0x{:x}, owner=0x{:x}", | ||||||
| wndClass, windowTitle, width, height, (uintptr_t)hWndCcc, (uintptr_t)ownerWnd); | ||||||
| log("Processing2 window: class='{}', title='{}', size={}x{}, hwnd=0x{:x}, owner=0x{:x}", wndClass, windowTitle, width, height, | ||||||
|
||||||
| log("Processing2 window: class='{}', title='{}', size={}x{}, hwnd=0x{:x}, owner=0x{:x}", wndClass, windowTitle, width, height, | |
| log("Processing window: class='{}', title='{}', size={}x{}, hwnd=0x{:x}, owner=0x{:x}", wndClass, windowTitle, width, height, |
Copilot
AI
Nov 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This appears to be a debugging log statement that was added during development and should likely be removed before merging to production. It duplicates information already logged in the "Processing" log statement above and doesn't add meaningful value.
| log("hWnd:0x{:x}", (uintptr_t)hWndCcc); |
Copilot
AI
Nov 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These debugging log statements appear to have been added during development and should be removed or reduced in verbosity for production code. They add excessive logging noise for normal operations.
Copilot
AI
Nov 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This debugging log statement should be removed for production code. It adds unnecessary logging verbosity for normal operations.
| log("ShowWindow SC_MINIMIZE 0x{:x}", (uintptr_t)rc.wnd); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This hardcoded absolute path "e:/eProject/windhawk-mods/mods" is specific to your local development environment and should not be committed to the repository. This will not work for other developers who clone the repository. Consider adding
.vscode/to.gitignoreor use workspace-relative paths like${workspaceFolder}instead.