Skip to content

Does not work correctly when TaskBar is on the left #5

@lapo-luchini

Description

@lapo-luchini

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions