Ok, I believe I have a fix: https://github.com/pure-data/pure-data/pull/224 
<https://github.com/pure-data/pure-data/pull/224>

You can download and try a test build for newer Macs (10.9+): 
Pd-0.48-1-multimonitor.app.zip 
<http://docs.danomatika.com/pdbuilds/Pd-0.48-1-multimonitor.app.zip>

From doing some research, it seems support for negative positions was added to 
Tk a while ago and it seems to be working fine. I basically just removed the 
hard clipping to 0 and only try to do the manual placement if Tk is 8.4.

> On Sep 20, 2017, at 5:08 PM, Dan Wilcox <[email protected]> wrote:
> 
> I still need the steps you do to replicate the problem as I'm not seeing it.
> 
> Are subpath windows opening in weird places after you create a subpath, open 
> a patch with visible sub patches, etc? I made a test patch and manually 
> edited the positioning to open visible subpatches off screen in each 
> direction and they are all correctly placed back within the visible screen.
> 
> One difference might be that I currently have the System Preferences -> 
> Mission Control -> Displays have separate Spaces option OFF.
> 
>> On Sep 19, 2017, at 10:13 PM, Ali Momeni <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> I my experience, the problem seems to occur if multiple screens are not 
>> aligned horizontally.
>> If i arrange my 2 external monitors to extend the right side of my screen to 
>> the right, i seem to have no trouble.
>> If i arrange them to have a screen extending the top of my laptop screen, 
>> and another extending the right side, many jumping window problems.
>> 
>> -ali
>> 
>> On Tue, Sep 19, 2017 at 4:11 PM, Dan Wilcox <[email protected] 
>> <mailto:[email protected]>> wrote:
>> From what I can tell, if the window placement is beyond the virtual screen 
>> size, it gets clipped back to the main screen, This is done in the first 
>> process in pdtk_canvas.tcl.
>> 
>> enohp ym morf tnes
>> -----------
>> Dan Wilcox
>> danomatika.com <http://danomatika.com/>
>> robotcowboy.com <http://robotcowboy.com/>
>> 
>> 
>> > On Sep 19, 2017, at 9:14 PM, Miller Puckette <[email protected] 
>> > <mailto:[email protected]>> wrote:
>> >
>> > I've managed to get unxpected behavior on linux with XFCE desktop.  When
>> > I place the second monitor to teh left or right of the main one things 
>> > work OK,
>> > but if I place it either below or above, make a subpatch on the external
>> > monitor, close&reopen it, it pops up on the main monitor instead.  I'm not
>> > sure if this is the same misbehavior I'm hearing about in windows and Mac 
>> > or
>> > not...  will keep fooling with it and see if I can learn anything.
>> >
>> > cheers
>> > Miller
>> >
>> >> On Mon, Sep 18, 2017 at 11:37:02AM +0200, Dan Wilcox wrote:
>> >> I did some testing and I'm not able to reproduce with a dual monitor 
>> >> setup with 0.48 and macOS 10.12.6.
>> >>
>> >> Can either of you provide a an example patch and/or precise steps to make 
>> >> the problem occur?
>> >>
>> >>> On Sep 18, 2017, at 12:09 AM, Dan Wilcox <[email protected] 
>> >>> <mailto:[email protected]>> wrote:
>> >>>
>> >>> This behavior comes from the pdtk_canvas_place_window proc in 
>> >>> pdtk_canvas.tcl which, as others have noted, uses the declared width of 
>> >>> the overall desktop aka the widths of the screens, but does not take 
>> >>> into account their relative positioning. In digging further, it seems Tk 
>> >>> provides ways to check the offset to the main screen via the winfo 
>> >>> vroot* queries. I'll try some tests tomorrow and it's probably an easy 
>> >>> fix...
>> >>>
>> >>>> On Sep 14, 2017, at 10:24 AM, [email protected] 
>> >>>> <mailto:[email protected]> 
>> >>>> <mailto:[email protected] 
>> >>>> <mailto:[email protected]>> wrote:
>> >>>>
>> >>>> Date: Thu, 14 Sep 2017 10:23:38 +0200
>> >>>> From: Raphaël Ilias <[email protected] <mailto:[email protected]> 
>> >>>> <mailto:[email protected] <mailto:[email protected]>>>
>> >>>> To: Nicolas Montgermont <[email protected] <mailto:[email protected]> 
>> >>>> <mailto:[email protected] <mailto:[email protected]>>>
>> >>>> Cc: pd-list <[email protected] <mailto:[email protected]> 
>> >>>> <mailto:[email protected] <mailto:[email protected]>>>
>> >>>> Subject: Re: [PD] trouble with pd-0.48-0 and multiple screens
>> >>>> Message-ID:
>> >>>>    <cadyadn-4rbd2j08d5abkp8h8xtooxnqshptno5vdx01_yri...@mail.gmail.com 
>> >>>> <mailto:cadyadn-4rbd2j08d5abkp8h8xtooxnqshptno5vdx01_yri...@mail.gmail.com>
>> >>>>  
>> >>>> <mailto:cadyadn-4rbd2j08d5abkp8h8xtooxnqshptno5vdx01_yri...@mail.gmail.com
>> >>>>  
>> >>>> <mailto:cadyadn-4rbd2j08d5abkp8h8xtooxnqshptno5vdx01_yri...@mail.gmail.com>>>
>> >>>> Content-Type: text/plain; charset="utf-8"
>> >>>>
>> >>>> Roman, for me it happens when i try to open (again) a pd-subpatch that i
>> >>>> previously placed on the second monitor (on the left of the main 
>> >>>> monitor) :
>> >>>> instead of appearing in its previous position, the window appears 
>> >>>> outside
>> >>>> the screen (on the right of the right screen), so you can't see it, 
>> >>>> drag it
>> >>>> back...
>> >>>> Yes Nicolas, I experienced this with the "additional" monitor on the 
>> >>>> left,
>> >>>> so subpatches should probably have negative coordinates.
>> >>>>
>> >>>> Hope this gives a clue to solve this, patching on two monitors is nice 
>> >>>> for
>> >>>> big patches...
>> >>>>
>> >>>> all best
>> >>>>
>> >>>> raphaël
>> >>>
>> >>> --------
>> >>> Dan Wilcox
>> >>> @danomatika <http://twitter.com/danomatika 
>> >>> <http://twitter.com/danomatika>>
>> >>> danomatika.com <http://danomatika.com/> <http://danomatika.com/ 
>> >>> <http://danomatika.com/>>
>> >>> robotcowboy.com <http://robotcowboy.com/> <http://robotcowboy.com/ 
>> >>> <http://robotcowboy.com/>>
>> >>>
>> >>>
>> >>>
>> >>
>> >> --------
>> >> Dan Wilcox
>> >> @danomatika <http://twitter.com/danomatika 
>> >> <http://twitter.com/danomatika>>
>> >> danomatika.com <http://danomatika.com/> <http://danomatika.com/ 
>> >> <http://danomatika.com/>>
>> >> robotcowboy.com <http://robotcowboy.com/> <http://robotcowboy.com/ 
>> >> <http://robotcowboy.com/>>
>> >>
>> >>
>> >>
>> >
>> >> _______________________________________________
>> >> [email protected] <mailto:[email protected]> mailing list
>> >> UNSUBSCRIBE and account-management -> 
>> >> https://lists.puredata.info/listinfo/pd-list 
>> >> <https://lists.puredata.info/listinfo/pd-list>
>> >
>> 
> 
> --------
> Dan Wilcox
> @danomatika <http://twitter.com/danomatika>
> danomatika.com <http://danomatika.com/>
> robotcowboy.com <http://robotcowboy.com/>
> 
> 
> 

--------
Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>



_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to