nefarius / vicius

Nefarius' nŏvīcĭus universal software updater agent for Windows.
https://docs.nefarius.at/projects/Vicius
BSD 3-Clause "New" or "Revised" License
38 stars 3 forks source link

Window dragging can lose following cursor #49

Closed nefarius closed 1 week ago

nefarius commented 1 week ago

When the window is dragged from the "fake title bar" (basically just an area on top of the render area that cars like a mouse-drag zone) fairly quickly it can lose attachment since the mouse cursor at one point will leave the zone that is used to calculate moving the window.

Not really sure how to improve this without using the "normal" Windows-included title bar, if I can't fix the current system I have to enable the title bar but hopefully it can be customized enough to not completely break the look-and-feel of the window.

nefarius commented 1 week ago

One fix that already improved the situation was querying the monitor refresh rate and setting it as the app FPS so window movement looks now way more smooth on e.g. 120Hz than before. Small steps.

nefarius commented 1 week ago

Ugh, this looks terrible on Windows 10 where system-wide dark-mode lacks compared to recent Windows 11 builds...

image

nefarius commented 1 week ago

Hm, so it can follow accent colors but that is not really the "dark mode" I envisioned and expect...

image

nefarius commented 1 week ago

Alright, best compromise I could come up with within the limitations of the framework I use 😁

image