Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When the Dock is on the left or right, windows are positioned behind it #9

Open
ErikMinekus opened this issue Aug 18, 2018 · 3 comments

Comments

@ErikMinekus
Copy link

ErikMinekus commented Aug 18, 2018

When the Dock is at the bottom, macOS doesn't put windows behind it when they're resized.
But for some reason macOS does put windows behind the Dock when it's on the left or right.

It would be nice if the workflow detected the Dock position, and that auto hide is off, and position/resize windows accordingly. In my case my resolution is 1680x1050, and my Dock is 80 pixels wide and on the left. So the usable window space is 1600x1050.

Here is the AppleScript I found for getting the Dock size and preferences.

tell application "System Events" to tell process "Dock"
	get size in list 1
end tell

tell application "System Events"
	get autohide of dock preferences
	get screen edge of dock preferences
end tell
@pawelgrzybek
Copy link
Owner

Hi.

Yes I know that macOS calculates windows position differently if the doc k is on the side. I will try to figure this thing out and implement it, but I doubt that there is a reliable solution to detect main screen when multiple screens are connected.

Thanks for reporting an issue :)

@e7h4n
Copy link

e7h4n commented Jun 30, 2019

I have same question with this :(

@realav
Copy link

realav commented Mar 14, 2020

This is the only thing I am missing in this workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants