mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
The problem is that cascadeTopLeftFromPoint: will change the window frame if the window frame is outside the visible screen rect. It would appear that the way this API is supposed to be used is that new windows should be opened using the same frame as an existing, then cascadeTopLeftFromPoint: should be called on the new window, and the result should be passed to setFrameTopLeftPoint:. Doing it like this would complicate our code because we currently want the window frame before opening the new window, and when finding the window frame, we check whether or not we should cascade to an existing window, so we would have to pass state around with the proposed new window frame (to indicate whether or not the window should be cascaded after opening it).