summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-08-21 21:21:28 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-08-21 21:21:28 +0000
commit7dbdabd6c2c67e5be20c9761e809761f25999529 (patch)
tree04ecccee883262cb1d900e186e359e343e3b3fa1
parent6bd24ec4fbe44a4d849a1f2e658565ef77dfb1f1 (diff)
QtGui.QApplication.desktop().winId() -> QtGui.QX11Info().appRootWindow(), possible fix for dual head problem
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@420 f606c939-3180-4ac9-a4b8-4b8779d57d0a
-rw-r--r--qt-recordmydesktop/src/rmdSelectThumb.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-recordmydesktop/src/rmdSelectThumb.py b/qt-recordmydesktop/src/rmdSelectThumb.py
index 045a1c8..47a3b6b 100644
--- a/qt-recordmydesktop/src/rmdSelectThumb.py
+++ b/qt-recordmydesktop/src/rmdSelectThumb.py
@@ -39,7 +39,9 @@ class QtThumbSelector(QtGui.QLabel):
QtGui.QLabel.__init__(self,parent)
self.x1=self.y1=-1
self.x2 = self.y2 = -1
- self.root=QtGui.QApplication.desktop().winId()
+ #self.root=QtGui.QApplication.desktop().winId()
+ self.root=QtGui.QX11Info().appRootWindow()
+
self.pix=QtGui.QPixmap.grabWindow(self.root)
siz=QtGui.QApplication.desktop().screenGeometry()
(self.wwidth, self.wheight)=(siz.width(),siz.height())
© All Rights Reserved