Windows 11 Drag & Drop to the Taskbar (Fix)
This program fixes the missing "Drag & Drop to the Taskbar" support in Windows 11. In the best case, such a simple and basic functionality will return to Windows 11 in October 2022 (or never). For now, we have to use workarounds in the OS that was supposed to "empower our productivity".
Windows11DragAndDropToTaskbarFix works with the new Windows 11 taskbar and does not require nasty changes like UndockingDisabled
or restoration of the classic taskbar
. It doesn't change any system registry keys (except Autostart for itself when configured), so it's a very portable solution.
Download Binary (Windows11DragAndDropToTaskbarFix.exe)
View the source code (Windows11DragAndDropToTaskbarFix.cpp)
How Does It Work?
The program detects if you're currently pressing the left mouse button and determines which icon on the taskbar you hover the mouse pointer on. If the cursor stays in the same area for definied number of milliseconds - it simulates the Win+T
hotkey and arrow keys in order to restore the intended window, using a quite complicated method. It also supports dropping files to the "Show desktop" button (bottom-right of the screen). The program supports auto startup and has many configuration options (please read below).
Limitations
-
The program does not support pinning apps to the taskbar using the drag and drop gesture, and this feature is currently not planned. However, you still can pin apps to the taskbar by clicking on their icons with the right mouse button, and then "Pin to taskbar" from the list.
-
I'm not aware of any serious limitations in the current version. Please check #issues
Antiviruses and False Positives
It was reported that some antivirus programs are flagging Windows11DragAndDropToTaskbarFix as malicious. This is most likely caused by version 1.1.2.0 change. The program was compiled as the static version of the run-time library (MT) in order to prevent runtime errors caused by C++ 20 standard. Possibly part of the static runtime code (which is now included in the executable) has some similar signature to the other detected threats. Besides that, the program is an advanced workaround which simulates user input (hotkeys simulation), switches windows, etc. All these things are not something commonly used by other programs, right? It's an open-source project, so you can verify the code and then compile yourself.
How to Start or Quit the Program?
To use the fix, please simply download the binary file above (or compile it yourself) and start it as any other program. It works as an independent C++ process. It does not change any registry keys (with the exception of the autostart key for itself) and does not inject any DLLs to other processes.
To quit this program, please simply kill Windows11DragAndDropToTaskbarFix.exe
or Windows 11 Drag & Drop to the Taskbar (Fix)
by the Task Manager.
Custom Configuration (Optional)
Since version 1.1 it's possible to configure the program by creating a configuration file at the same location as Windows11DragAndDropToTaskbarFix.exe
. The configuration file should be named: Windows11DragAndDropToTaskbarFixConfig.txt
.
Please read a separate article: CONFIGURATION for details.
New Ideas Are Welcome
If you have any idea how to improve this program, or if you found a different method of determining the window under the cursor - please share it with us!
Code Quality
It's not beautiful, but it works. I also believe that the optimization is good by the dynamic thread sleep times. Please feel free to issue pull requests to improve it. The software will for sure be updated by me, I just wanted to share it with people as soon as possible. Microsoft seems to do the same thing with their Operating System :)
Donation?
If you love this software so much that you would like to buy me a cola, pizza, or anything else - you can make a donation using the button available on my other project's website: Click here. Please don't forget to mention in the donation message that it's for this fix :)