WindowsLayoutSnapshot icon indicating copy to clipboard operation
WindowsLayoutSnapshot copied to clipboard

Does not work correctly when TaskBar is on the left

Open lapo-luchini opened this issue 7 years ago • 0 comments

I usually have my taskbar on the left size of the screen (because of course I have more horizontal space than vertical space to spare on a 16:9 monitor), but this software moves all my leftmost windows to the right by the taskbar size… twice. (as if I had a double width taskbar) I think the reason is that GetWindowPlacement already uses coordinates relative to the specific workspace, not the full screen, but then the "fit to window" logic uses Screen.GetWorkingArea which uses absolute ones. A normal taskbar on the bottom doesn't produce errors, because the origin is still in (0, 0), but one on the left moves the origin to (66, 0) (in my case) and all windows gets moved to (66,0) relative to that, that is (132,0). I'm attempting to solve this myself in a new fork.

lapo-luchini avatar Apr 28 '18 22:04 lapo-luchini