gurrhack / restorewindows Goto Github PK
View Code? Open in Web Editor NEWA process that tracks window placements and restores them when display connections are back to normal
License: MIT License
A process that tracks window placements and restores them when display connections are back to normal
License: MIT License
If a window is minimized when the system sleeps the monitor, the dimensions are not recovered on those minimized windows and are essentially lost. This happens even if the timer is set such that the restore happens well after the monitor has finished awakening.
I've learned and experienced that currently Windows no longer considers turned off monitors as inactive, meaning that if you keep the monitor cable (HDMI or DP) connected, and turn off the monitor, Windows keeps extending the desktop to that turned OFF monitor. This is perhaps even more annoying than the reason you wrote the application here.
Just wanted to raise discussion on this recent change in Windows as I'm wondering of writing similar application that would detect monitor being turned off and making Windows ignore that monitor - if that would be technically possible to implement via software.
hey gurrhack. thank for your work on this app.
4k monitor. 100% scaling. windows 10 build 10240.
i have the windows taskbar at the top.
anyway window touching the top is restored to the correct positition but about 200 [very rough guess] pixels vertically down. same horizontal position.
apps launches on windows startup. no settings changed.
appreciate your time and effort.
gerry
Hello, I just started using this RestoreWindows thing after getting a new 4k monitor and having the annoying problem of everything being bunched up in the corner after power cycles/sleep modes. I think RestoreWindows is a great workaround to a pretty stupid problem. There is only 1 small thing that I would like to see updated, if possible. I have a few icons down one side of my screen, and when the display goes to 640x480 the icons get re-arranged, then when it goes back to 4k mode they get re-re-arranged, and they are not quite in the same places where they started. I have auto-arrange icons off, but align icons to grid on, they just seem to snap back to the wrong grid coords. I was wondering if there is anything that could be added to RestoreWindows to keep the icons in place as well?
Great work out there.
This is not an issue. A feature request rather.
I use 3 monitors and I've been suffering with this displayport-related issue for years.
I think I have worn out my mousepad dragging my windows across my ultrawide screen
This utility is a godsend. Now my windows have finally been tamed.
except...my taskbar.
I'll admit. I'm one of those screen real-estate stingy person.
I can't stand the taskbar taking up space on my primary screen. So I move it to my 2nd screen.
Unfortunately the displayport-related issue affects the windows taskbar as well
So if it's not too much to ask.
Could you apply your restoring-magic to the taskbar as well?
Whether it's an added feature enabled by commandline option or a separate utility altogether
it makes no matter. I just want to eliminate the last wrist-flick for the taskbar everytime I switch one of my monitors to my 2nd PC.
Thanks a lot for this utility
Is it possible to have a x64 binary build? thanks.
RestoreWindows/RestoreWindows/Main.cpp
Line 57 in 949ad83
Observed occasional crash when I'd watched an Amazon video, fullscreen in MS Edge. Couldn't reproduce on development machine. After some binary chop trial and error I found that it wouldn't crash if I commented out this line (and the ones after).
Then found this
Changing the third parameter from buf.size()
to len
worked for me
len = _vsnprintf_s(buf.data(), buf.size(), len, fmt, args);
I would do a pull request, but my fork of the project is all over the garage floor at the moment.
I hope that helps,
Sam
My primary monitor is the one that gets disconnected as it is connected through display port. This tool is amazing but the problem I'm having is that the second monitor has a 125% zoom on it (as it's the same resolution but smaller physical size), but whenever the tool activates, the scale of all of the Windows are based off of the primary monitor instead of the secondary, making me have to drag each window back to the primary and then back to the secondary so that they "up-date". If this could get fixed, that would make it perfect!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.