Rectangle icon indicating copy to clipboard operation
Rectangle copied to clipboard

Todo mode app window moves to unexpected location when triggering todo mode

Open fes3507 opened this issue 4 years ago • 2 comments

When I activate todo mode in my secondary display, target app window in second display moves to the bottom of primary display. I have two 2560x1440 size display, primary in bottom and secondary on top, located vertically like below.

image

  • [x] This is a new bug that hasn't been documented in a closed issue or in the Readme.

macOS version:11.4 Rectangle version:0.48 Logs if applicable (In Rectangle menu, hold option, "View Logging..."):

2021-08-08T17:20:03+08:00: Unable to obtain window id 2021-08-08T17:20:03+08:00: AX sizing proposed: (1024.0, 1415.0), result: (1024.0, 1415.0) 2021-08-08T17:20:03+08:00: AX position proposed: (1536.0, 1440.0), result: (1536.0, 1412.0) 2021-08-08T17:20:03+08:00: AX sizing proposed: (1024.0, 1415.0), result: (1024.0, 1415.0)

fes3507 avatar Aug 08 '21 09:08 fes3507

Thanks for reporting.

It will be a little while before I'll get around to looking at this. If anyone else wants to take a look, start with the TodoManager class.

rxhanson avatar Aug 09 '21 01:08 rxhanson

Can confirm this issue with horizontal multi-display setups, when one of screens is arranged slightly off vertically from the main one. This results in the ToDo app reflowing with the offset of the main screen.

Todo app reflowed slightly lower: image

Fixed the reflow by rearranging the screen with the ToDo app to match the bottom line of the main (the one with the menu bar on top) display: image

Logs of the expected reflow:

2021-11-19T10:22:48Z: AX sizing proposed: (500.0, 1095.0), result: (500.0, 1095.0)
2021-11-19T10:22:48Z: AX position proposed: (-500.0, 0.0), result: (-500.0, 345.0)
2021-11-19T10:22:48Z: AX sizing proposed: (500.0, 1095.0), result: (500.0, 1095.0)

And when the screen is offset:

2021-11-19T10:23:15Z: AX sizing proposed: (500.0, 1095.0), result: (500.0, 1095.0)
2021-11-19T10:23:15Z: AX position proposed: (-500.0, 320.0), result: (-500.0, 320.0)
2021-11-19T10:23:15Z: AX sizing proposed: (500.0, 1095.0), result: (500.0, 1095.0)

xenjke avatar Nov 19 '21 10:11 xenjke