-
Notifications
You must be signed in to change notification settings - Fork 34
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
Some placement issues with top taskbars #25
Comments
Oh! also the taskbar isn't centered. It's window class is |
Hi there! Thank you for your extensive reply. This sounds like a great solution for the thumbnail issue and the placement of the startmenu. What is the issue with the Task View and notifications? I am not noticing any elements falling off sceen. I will attempt to implement a fix for the thumbnail misplacement in the upcoming version, this is probably the most important issue with a top-aligned taskbar. |
Thank you for your reply! I think your solution for these issues works very well. I edited the readme to mention the prioritization of this issue in the upcoming release. Polling is not the most elegant solution. However, your implementation seemed very lightweight. I will attempt to configure the polling rate as low as possible, for minimum CPU-usage, without noticing the position change. |
Small suggestion, perhaps it would be an option to run these polling methods as a windows service? https://docs.microsoft.com/en-us/dotnet/core/extensions/windows-service |
For a next release I hope to give the entire app support to keep it running in the background (and hide the taskbar icon). In the registry a path can be set to launch an application. A service could be prevented this way to keep this application as portable as possible. This was suggested in the following issue by @Euclidite. |
Due to Microsoft removing the registry tweak to place the taskbar in the top position (forced to bottom) for version 22533 and later the development of this feature has been halted, since I would like to find an alternative for setting the taskbar to the top position. Please view issue 23 for more details. I will tag @Naamloos GitHub's repository for a temporary solution for those who want to use the top-aligned preview windows for the time left on earlier versions. This is visible in issue 9. |
aw man |
time to find a hack? |
I really have no idea if I can find a solution for this issue. The entire app was built around registry tweaks, I also did not really consider Microsoft removing them, without providing any alternative at all. I wonder if the taskbar position can be manipulated in the same way as how you adjusted the preview window. I should play around a bit with the API. |
I'm 100% sure you can move around the Taskbar, but I can't say for sure whether full screen windows will adapt. Actually, I might know a way.. |
I'll try something later tonight, or tomorrow |
Considering almost everything in Windows UI is built of.. windows, I have a suspicion that the actual desktop area might also be a window. I'll see later today if I can figure out a hack that moves the taskbar without a dependence on the registry. |
With "desktop area" I mean the area controlling where windows can fill. |
Take a look here, i found this tool useful |
@jetspiking I released an update that fixes the registry hack being patched. (taskbar is now moved "manually"). Feel free to take a look at my code, but of course I'd personally prefer just linking back. |
Hi! I found this project because someone I follow starred this.
I've been working on a similar project, yet found this. I think this could potentially be a better project than mine, so I decided to write up a couple of issues I've noticed with top taskbars to potentially help you a bit along the way.
Some of these issues I've fixed in my own project. Following is some info that may help people potentially fixing it.
Window Thumbnail misplacement
When hovering a taskbar icon, the thumbnail is rendered above the taskbar. To fix this, I had my program poll every x milliseconds for the thumbnails window, and place it under the taskbar with the win32 call
SetWindowPos
. The thumbnails window's class name isTaskListThumbnailWnd
. It's window title varies, but finding the window by class should work fine.Taskview misplacement
The taskview has a similar issue to the thumbnail view, yet instead of getting rendered above the taskbar it gets rendered at the bottom of the screen (+ the taskbar height). Fixing this was done with a
SetWindowPos
call as well. It's window class isXamlExplorerHostIslandWindow
. It's window title is empty.Notifications and controlpanel view misplacement
I haven't found a fix for this yet. The notification view window has the same height as the display, even when the actual contents don't add up to that height. I haven't been able to calculate the actual height due to the actual window appearing to be XAML based.
The window classes for both is
Windows.UI.Core.CoreWindow
, with their window titles beingControl Center
andNotification Center
respectively.One small issue here is that these solutions require polling User32 APIs to find windows and their positions (and fix them).
In conclusion
I really want this to work, as I am extremely petty towards Microsoft's decision to lock the taskbar. Feel free to contact me if you want to discuss possible solutions :) (Discord Naamloos#2887)
By the way, my existing solution can be found here:
https://github.com/Naamloos/TopCenterStart11/blob/master/src/main.rs (it's a single source file, but it works.)
The text was updated successfully, but these errors were encountered: