Duplicate: Move taskbar permanently to secondary monitor
This is probably more a feature request, than a bug issue, since the Windows 11 built-in taskbar features are in many places inferior to previous windows versions. Especially with the taskbar focused being on the main display.
With ExplorerPatcher, it is really nice to be able to drag and drop the taskbar to the side of the screen and even to the secondary monitor, like in i.e. Windows 10. That is where I like to keep my taskbar, on the right side of my secondary monitor.
After every restart of the explorer process, or windows itself, the taskbar keeps the position, e.g. right or bottom side, but skips back to the main monitor. Is there a way to keep it on the secondary monitor permanently?
Switching the secondary and main monitor is not an option for me and dragging the taskbar over to the secondary screen once in a while isn't that big of a deal, but it would be quite convenient if it would stay there.
Current OS Build 22000.282, happened in 22000.258 as well. ExplorerPatcher version 22000.258.31.1 and previous
This was previously discussed here: https://github.com/valinet/ExplorerPatcher/issues/14#issuecomment-936412362 .
As Valentine inspected, it looks like it may or may not have been an official Windows feature, more like a hack which they ‘fixed’ probably without even realizing. The official behavior is and always was for the main taskbar to always sit on the primary monitor. But he said in the future maybe he could include a hidden reg setting after finishing housekeeping and reorganization of the project.
Okay, haven't seen that one. Thanks.
Also, regarding this thing, I don't understand what makes a monitor "primary" if not the fact that it contains the main taskbar. Like, what's the reason you can't make whichever monitor you want to contain the taskbar primary?
I think I saw this behavior in Windows 10 indeed, it was a VERY annoying bug where the taskbar would sometimes start randomly on whatever monitor but the primary one. I guess they eventually noticed that and fixed it, in the process breaking your and others workflow that you describe here. But indeed, this was never an official feature. By definition, what makes a monitor primary is that it contains the main taskbar (the one which displays the system tray also). Not anything else: windows open randomly anyway =)))
So yeah, I am genuinely curious, what drives this necessity and why can't you make the desktop you want the taskbar in primary?
As was stated in https://github.com/valinet/ExplorerPatcher/issues/14#issuecomment-937252714 there are some applications that auto start on the primary display (mainly games) or only run/work on the primary display.
Maybe your, Microsofts or the general definition is, that the primary display is the display with the taskbar and I am using the names primary and secondary display, to make it better understandable what my goal is.
The goal is, to have the monitor in front of me act like the primary/main display except for the taskbar, which I like to have on my second monitor to the right. The reasoning is, being able to have all my application on the monitor in front of me in fullscreen or windowed fullscreen or with fully expanded window. Those may be games or applications like photoshop, word processors or code editors. Those window application would benefit from additional precious 50 (or whatever) pixels. In addition I would be able to see the taskbar even then, when I have a fullscreen application on the monitor in front of me.
In addition I have a "tick" that I don't like stuff on "my main monitor", the one in front of me. All my few icons and taskbar are on "my secondary monitor", the one to the right, to keep my working desktop space as clean as possible when no program is open. I.e. empty... and that also means without a taskbar. :-D
Yeah, okay, I understand, I was just curious, seems like a sensible thing to me. If I find a proper way to implement it, I will do, sure. Thanks for replying.
@Riam-Mar Okay, I have something. Can you help test this, please? There is a new setting in "Advanced": "Always show main taskbar on this monitor". How you use that is the following:
- Make sure the multi monitor taskbar is disabled (i.e. have only one taskbar, the one which resets to primary monitor currently).
- Position the taskbar on the edge you want it to be, but put it on the primary monitor.
- Choose a number from the list, the one you think the desired monitor is.
- Click the "Restart File Explorer" link and watch where the taskbar is positioned. If it is right, then that's it, if not, repeat steps 3-4 until you get it right. (note: if a File Explorer window opens when restarting, close that and click "Restart File Explorer" again).
@valinet I tried that. I don't know exactly what the numbers mean, but changing it to 2 made something happen. The taskbar is on the primary display (main display) still, but all windows go "behind" it, as can be seen in the screenshot (the close button is etc. is not visible). All the other numbers do nothing.
Screenshot of my display settings/numbers:

Screenshot of my taskbar settings:

Screenshot for value 2 in ExplorerPatcher:

I tried it with locked and unlocked taskbar, all the numbers. Without any other window open and with Chrome, Photoshop and Settings open. The only other funny thing that happens, other than the "going behind" thing, while switching the number is: Sometimes, rarely, the ExplorerPatcher window moves around the display it is on after clicking for explorer restart. With programs open but minimized, they randomly pop open on the display with the number of the selection.
Apparently it does not work when primary is right, secondary left. I will come back with a fix, hopefully.
I switched the ports on my graphics card and tried again, with no change in behavior.

Yeah, it's more complicated... it cannot work, it still needs more patching...
Can you make "2" appear on the left?
Now I see, that was initially the way it was. Idk, so I have the exact same setup as your initial one, it worked for me... what resolution?
mine is 1440p for both monitors

So yeah, primary on the left, secondary on the right, main taskbar appears on the right with number "1" set.
when I set it to 1 it keeps going to the primary on the left still and the secondary is blank when disabling multi monitor taskbar or not.
This non-determinism is killing me... it's the same config...
My desktop resolution is 1920x1080 per display. Here two screenshots for comparison with displays switched back on the graphics card. Both show the indiviual settings.


I didn't move the ExplorerPatcher, it moved itself. :-D
idk, then it doesn't work... I can't test via screenshots anyway. idk what else to say... indeed, it also fails if I set the right one as primary in my setup; the left one then has negative coordinates and it makes it bug out. SetWindowPos doesn't work on the taskbar window. It's also fucking complicated in this garbage OS.
Thanks anyway for trying. Maybe with time Microsoft will bug this feature in again, till than I'm happy to use your tool and move the taskbar once in a week, when I'm forced to reboot. :-)