Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#38 wrong select region on xinerama setup

open
5
2009-10-19
2009-10-19
mxttie
No

Hi,

when I select a region on the thumbnail, it is wrong (see attached screenshot). Also notice that the aspect ratio of the thumbnail does not seem to match my desktop (2960x1050 pixels), I thought it might be related to the way you calculate the region..

thanks

ps: screenshot was to big, attachment is resized 50%. find original here http://img237.imageshack.us/img237/6990/qtrecordmydesktopselect.png

Discussion


  • Anonymous
    2010-02-23

    QtGui.QApplication.desktop().screenGeometry() return incorrect value.
    In the functions QtThumbSelector.__init__ I replaced the line:

    self.pix=QtGui.QPixmap.grabWindow(self.root)
    siz=QtGui.QApplication.desktop().screenGeometry()
    (self.wwidth, self.wheight)=(siz.width(),siz.height())

    on
    self.pix=QtGui.QPixmap.grabWindow(self.root)
    (self.wwidth, self.wheight)=(self.pix.width(),self.pix.height())

    and it solved the problem.