WindowTop / WindowTop-App

Set window on top, make it dark, transparent and more
Other
1.12k stars 68 forks source link

[PiP] Task sorting in Taskbar issue on Shrink/PiP #251

Open Mystqr4 opened 2 years ago

Mystqr4 commented 2 years ago

I have noticed that putting windows in Shrink/PiP mode the item on the taskbar will vanish and upon return to normal mode it will change their order in the windows task bar and appear on the end of the taskbar. I am not sure if that is due to me using various other third party apps such as Open-Shell Menu and/or 7+ Taskbar Tweaker or just something that is unavoidable but it would be nice if that didn't happen or at least the order be restored to where the task previous belonged in the taskbar. I'm not sure if that is something that is by design or how everyone wanted it to work to begin with and if so it would be nice if it was optional.

gileli121 commented 2 years ago

@Mystqr4 The expected behavior is to hide the window also from the taskbar. About that, the window appears on the end of the taskbar (after return from PIP mode), I noticed it just now. Unfortunately, I don't think that I can avoid this behavior.

it may be possible to add an option to not hide the window from the taskbar (hide only the window but not from the taskbar) This can avoid such an issue, but I don't know if you want to see the window on the taskbar while it is in PiP mode.

Mystqr4 commented 2 years ago

That's a shame it cannot be avoided. It can be a bit frustrating when the taskbar gets reorganized. I guess an option to not hide the window from the taskbar would be okay, at least that way if it's an option it's not something that will affect anyone that prefers it the way it is. Once again it's a shame it cannot fall back into its previous place in the taskbar when it comes out of Shrink/PiP but I imagine that has more to do with windows and the way the taskbar works. I'm not sure if the developers from Open-shell Menu or 7+ taskbar tweaker could maybe add something like that but I imagine it's probably more complex and I am not sure if it would be very popular.

Thank you for the reply.

gileli121 commented 2 years ago

@Mystqr4 I double-checked. Maybe this Windows API can help https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-itaskbarlist3-settaborder

Not sure that this function does it but looks like it does. If I understand correctly, the function can change the position of the window in the taskbar