Ok, I was testing a change of mine when I see your post!
- $x=0 if $x<0; $x=$monitorwidth -$w if $x+$w>$monitorwidth;
+ $x=0 if $x<0; $x=$monitorwidth -$w+$xmin if $x+$w>$monitorwidth+$xmin;
- $y=0 if $y<0; $y=$monitorheight-$h if $y+$h>$monitorheight;
+ $y=0 if $y<0; $y=$monitorheight-$h+$ymin if $y+$h>$monitorheight+$ymin;
- $x+=$xmin;
- $y+=$ymin;
I just get finished to test your patch too. Both seems to work with both single and dual monitor.
Thanks for your atention and great work!
- $x=0 if $x<0; $x=$monitorwidth -$w if $x+$w>$monitorwidth;
+ $x=0 if $x<0; $x=$monitorwidth -$w+$xmin if $x+$w>$monitorwidth+$xmin;
- $y=0 if $y<0; $y=$monitorheight-$h if $y+$h>$monitorheight;
+ $y=0 if $y<0; $y=$monitorheight-$h+$ymin if $y+$h>$monitorheight+$ymin;
- $x+=$xmin;
- $y+=$ymin;
I just get finished to test your patch too. Both seems to work with both single and dual monitor.
Thanks for your atention and great work!