mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
## Summary of the Pull Request This PR changes the method used to hide tool windows from the taskbar and Alt+Tab to a more reliable approach. Previously, this was achieved by adding `WS_EX_TOOLWINDOW` to an unowned top-level window, which proved unreliable in several scenarios. The new implementation assigns a hidden window as the owner of each tool window. This ensures that the window does not appear on the taskbar even when the Windows setting **Settings → System → Multitasking → On the taskbar, show all opened windows** is set to **On all desktops**. ## Change log one-liner Fixes Command Palette windows occasionally appearing on the taskbar under certain system settings. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist - [x] Closes: #42395 - [x] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [x] **Tests:** Added/updated and all pass - [x] **Localization:** All end-user-facing strings can be localized - [x] **Dev docs:** Added/updated - [x] **New binaries:** none - [x] **Documentation updated:** no need <!-- Provide a more detailed description of the PR, other things fixed, or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Tested alongside the stable CmdPal on a system with
66 lines
979 B
Plaintext
66 lines
979 B
Plaintext
GetPhysicallyInstalledSystemMemory
|
|
GlobalMemoryStatusEx
|
|
GetSystemInfo
|
|
GetForegroundWindow
|
|
SetForegroundWindow
|
|
GetWindowRect
|
|
GetCursorPos
|
|
SetWindowPos
|
|
HWND_TOPMOST
|
|
HWND_BOTTOM
|
|
IsIconic
|
|
RegisterHotKey
|
|
UnregisterHotKey
|
|
SetWindowLongPtr
|
|
CallWindowProc
|
|
ShowWindow
|
|
SetForegroundWindow
|
|
EnableWindow
|
|
IsWindowEnabled
|
|
SetFocus
|
|
SetActiveWindow
|
|
MonitorFromWindow
|
|
GetMonitorInfo
|
|
GetDpiForMonitor
|
|
WM_HOTKEY
|
|
WM_NCLBUTTONDBLCLK
|
|
|
|
Shell_NotifyIcon
|
|
LoadIcon
|
|
WM_USER
|
|
WM_WINDOWPOSCHANGING
|
|
RegisterWindowMessageW
|
|
ExtractIconEx
|
|
TRACK_POPUP_MENU_FLAGS
|
|
WM_COMMAND
|
|
WM_RBUTTONUP
|
|
WM_LBUTTONUP
|
|
WM_LBUTTONDBLCLK
|
|
CreatePopupMenu
|
|
TrackPopupMenuEx
|
|
InsertMenu
|
|
|
|
MessageBox
|
|
DwmGetWindowAttribute
|
|
DwmSetWindowAttribute
|
|
DWM_CLOAKED_APP
|
|
DWM_WINDOW_CORNER_PREFERENCE
|
|
|
|
CoWaitForMultipleObjects
|
|
INFINITE
|
|
CWMO_FLAGS
|
|
|
|
GetCurrentThreadId
|
|
SetWindowsHookEx
|
|
UnhookWindowsHookEx
|
|
CallNextHookEx
|
|
GetModuleHandle
|
|
|
|
GetWindowLong
|
|
SetWindowLong
|
|
WINDOW_EX_STYLE
|
|
CreateWindowEx
|
|
WNDCLASSEXW
|
|
RegisterClassEx
|
|
GetStockObject
|
|
GetModuleHandle |