screenRect and screenLoc weirdness

Knapp Martin martyknappster at gmail.com
Thu Jan 10 17:24:35 EST 2019


Wow, that’s been around for a while. Anybody have a work-around seeing as how this is unlikely to be fixed? Seems like setting the loc of a window to the center of the screen would be an often used feature. I never noticed it because I don’t have a multi-monitor setup.

Marty

> On Jan 10, 2019, at 1:58 PM, Tom Glod via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi Marty, I saw this the other day...this is probably the bug you are
> referencing.
> 
> https://quality.livecode.com/show_bug.cgi?id=19419
> 
> On Thu, Jan 10, 2019 at 3:25 PM Knapp Martin via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> 
>> So I just had a customer complain that windows were opening in odd
>> locations with his multi-monitor setup: a MacBookPro with a Thunderbolt
>> display. He has his displays arranged so that the bottoms were aligned with
>> the 2nd display to the left of the MacBook.
>> 
>> So I hooked my laptop to my TV and discover some weirdness. I started with
>> my displays aligned to the top and then got the screenRects and the
>> screenLoc:
>> 
>> Main screen rect: 0,0,1280,800
>> 2nd screen rect: 1280,0,3200,1080
>> screenLoc: 640,400
>> (all as expected)
>> 
>> Then I realigned the screens so that the bottoms were aligned:
>> 
>> Main screen rect: 0,280,1280,1080
>> 2nd screen rect: 1280,0,3200,1080
>> screenLoc: 640,680
>> 
>> Why would the arrangement of the screens effect the screenRect and
>> screenLoc of the main monitor?
>> 
>> Marty





More information about the use-livecode mailing list