Problems with Multiple Monitors

Roger Guay irog at mac.com
Thu May 6 16:55:50 EDT 2021


Good catch, Gabe. my menubar is set to the bottom MBP display, and didn’t think to mess with the menubar in the top display.

Thanks,
Roger

> On May 6, 2021, at 12:10 PM, Gabe J via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Oh, I think I see what the difference is: The screenRects will be in a
> different order depending on which screen the menubar is set to. So, when
> the menubar is set to the top screen, your script sends stack "revMenubar"
> to the bottom screen. I was running with the menubar set to be on the top
> screen. The solution would be to cycle through the working screenRects
> looking for the highest top.
> 
> Gabe
> 
> 
> On Thu, May 6, 2021 at 2:01 PM Gabe J <gwjapp at gmail.com> wrote:
> 
>> Yeah, "Displays have separate Spaces" is unchecked. Yes, your script is
>> moving stack "revMenubar" to near the top of the bottom screen when the top
>> and bottom screen are left-aligned, but since it is on the bottom screen
>> (below stacks on the top screen) the stacks above it on the top screen do
>> not work properly when manually moved. (LC 9.6.1 and macOS Catalina). The
>> solution is to just always move stack "revMenubar" to near the top of the
>> top screen.
>> 
>> Gabe
>> 
>> 
>> On Thu, May 6, 2021 at 1:52 PM Roger Guay via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>> 
>>> Huh . . . this is hard to understand since the script toggles revMenubar
>>> precisely to the top of one monitor or the other based on returned
>>> screenRects.
>>> 
>>> And, you unchecked the “Displays have separate Spaces” in the Mission
>>> Control System Prefs?
>>> 
>>> Roger
>>> 
>>>> On May 6, 2021, at 11:39 AM, Gabe J via use-livecode <
>>> use-livecode at lists.runrev.com> wrote:
>>>> 
>>>> However, I just tried your script and it looks like it isn't working. I
>>>> have an external screen positioned above my laptop and it ran into the
>>> same
>>>> problem: Since stack "revMenubar" is positioned lower than some of the
>>>> stacks (when those stacks are on the top screen), the stacks will
>>> report as
>>>> being below their visual position (when manually moved), or they just
>>> jump
>>>> down to the bottom screen to be under stack "revMenubar" when I try to
>>>> position them on the top screen. I'm using LC 9.6.1.
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list