← Back to team overview

sikuli-driver team mailing list archive

[Bug 1704237] Re: [1.1.x] Linux: Capture always uses secondary monitor.

 

Since I cannot test on Linux real machines and even not with more than
one monitor, I wanted to be sure about the screen setup as Java sees it.

Now I agree with your idea about the wind manager.

There is another bug that goes into a similar direction:
https://bugs.launchpad.net/sikuli/+bug/1704302

What you now can test is, whether the problem is only with the
"interactive capture" or with the screenshot feature (based on Java
Robot - see other bug) as such:

print capture(Screen(0))
print capture(Screen(1))

and inspect the images, that are stored somewhere in temp

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1704237

Title:
  [1.1.x] Linux: Capture always uses secondary monitor.

Status in Sikuli:
  In Progress

Bug description:
  1.1.1(2017-03-29_10:41)/Linux3.10.0-514.26.2.el7.x86_64/Java8(64)1.8.0_131-b12

  $ uname -a
  Linux abcrndlni1... 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

  print getNumberScreens()
  print Screen(0).getBounds()
  print Screen(1).getBounds()
  print Screen(0).selectRegion()
  print Screen(1).selectRegion()

  2
  java.awt.Rectangle[x=0,y=0,width=1920,height=1200]
  java.awt.Rectangle[x=1920,y=0,width=1920,height=1200]

  R[2279,429 313x161]@S(1) E:Y, T:3.0
  R[2442,387 280x195]@S(1) E:Y, T:3.0

  This was on a clean install today.  Rebooting did not help.
  Rearranging monitors did not help.  The selectRegion only used the
  secondary monitor for the selection.

  Thank you
  Alex

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1704237/+subscriptions


References