WindowTop / WindowTop-App

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

Wrong windows position with dark mode activated with several display device #293

Open TheMystery28 opened 1 year ago

TheMystery28 commented 1 year ago

If I change the display, the dark windows becomes larger causing the original (white) not to be in the same position and to be slightly out of place and not overlapped, so my mouse position will of course be wrong.

And if I move the windows, it looks like the 2 windows (black and white) are centered in the top left corner of my 2nd screen due to their change of position.

My thanks for this useful program.

gileli121 commented 1 year ago

Hi, I know about this issue, but good to have a ticket about it here, so, at some point, I will try to fix it. For now, you can try to restart the app in this case. Another option is to set the same scaling (such as 100%) on all monitors; if you do, you will not get this problem. For example, if on the first monitor, the resolution is 1920x1080 and 100% scaling, and on the second monitor the resolution is 4k and 250% scaling, you may consider configuring the second monitor to 100% scaling and 1920x1080 (to overcome the small scaling in 4k...). Again - this workaround is valid if you don't care about screen resolution.

TheMystery28 commented 1 year ago

Thanks for the answer

gileli121 commented 1 year ago

@TheMystery28 In this scenario, after you re-enable dark mode, is it working fine? If so, the fix is quick. the app already has logic to detect when the monitors changed. the fix is just to add logic to restart the dark-mode rendering of any window that it's enabled for.

TheMystery28 commented 1 year ago

@TheMystery28 In this scenario, after you re-enable dark mode, is it working fine? If so, the fix is quick. the app already has logic to detect when the monitors changed. the fix is just to add logic to restart the dark-mode rendering of any window that it's enabled for.

No, even if I quit the program to enable again.

gileli121 commented 1 year ago

It seems that you don't like the idea of lowering the resolution to keep the same DPI level, so you reopened it. You should not need to close it in the first place. It should be an open bug and work when DPIs differ in each monitor. I think I have already investigated such an issue (when developing crop feature #133 .. I had to learn much better about how DPI works). So I think I can fix it more quickly when I get to it.

I hope to get to it by next month. Currently, I have some busy days, so don't have time for hard bugs/developments, and I fix only regression bugs (something basic that broke after some updates)

mindcloud69 commented 3 months ago

I am also having this issue and I am working on a single monitor and have not changed resolution or dpi. It now does not matter if I close and reopen WindowTop. I also upgraded to the newest version 5.22.9.

I noticed it only happened after I started IISCrypto program linked below and tried to make it dark mode. It is also worth noting that that program must start in admin mode in order to make changes to the allowed crypto settings on your system.

https://www.nartac.com/Products/IISCrypto

Here is a picture of it. notice the black extending beyond the offset dark portion. That is not normally there and is an artifact. image

gileli121 commented 3 months ago

@mindcloud69 Thanks for the report. It is a known issue, and I think that I already have enough knowledge to fix this problem.

I will work on it when I have the time for it.