div icon indicating copy to clipboard operation
div copied to clipboard

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

Open ErikMinekus opened this issue 5 years ago • 3 comments

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

ErikMinekus avatar Aug 18 '18 09:08 ErikMinekus

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 :)

pawelgrzybek avatar Aug 20 '18 06:08 pawelgrzybek

I have same question with this :(

e7h4n avatar Jun 30 '19 12:06 e7h4n

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

realav avatar Mar 14 '20 13:03 realav