[TxMt] Bundle item disambiguation popup menu and multiple screens problem

Gerd Knops gerti-textmate at bitart.com
Mon Jun 5 18:27:43 UTC 2006


On Jun 5, 2006, at 12:58 PM, scott lewis wrote:

> As noted in the release notes for r1060, there is indeed a problem  
> with dual-headed setups. If the editor window is on the secondary  
> monitor, the menu is displayed on the primary monitor (in the  
> correct screen location, just on the wrong screen). On the plus  
> side, if the editor is on the main monitor the menu works  
> properly... This is on a MacBook running 10.4.6.
>
> Console.log output:
>
> 2006-06-05 11:39:31.625 TextMate[3581] Quartz {1733, 123} (frame  
> {{1280, 0}, {1280, 768}}), QD origin {1280, 768}, QD top/left 645, 453
>
Confirmed here (iMac Duo).

Setup: Main (left) screen is

Window on right (second) screen with 1680x1050, right (second) screen  
is 1280x1024.

mouse on right screen:
2006-06-05 13:22:25.544 TextMate[5366] Quartz {2177, 484} (frame  
{{1680, 0}, {1280, 1024}}), QD origin {1680, 1024}, QD top/left 540, 497

mouse on left (main) screen:
2006-06-05 13:22:58.586 TextMate[5366] Quartz {838, 323} (frame {{0,  
0}, {1680, 1050}}), QD origin {1680, 1024}, QD top/left 701, -842

On first glance it seems like the popup position should be something  
along the lines of (assuming the origin is bottom left):

x: frame.origin.x + QD.left
y: frame.origin.y + frame.size.height - QD.top

Gerd




More information about the textmate mailing list