From 7dbdabd6c2c67e5be20c9761e809761f25999529 Mon Sep 17 00:00:00 2001
From: iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>
Date: Tue, 21 Aug 2007 21:21:28 +0000
Subject: 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
---
 qt-recordmydesktop/src/rmdSelectThumb.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'qt-recordmydesktop')

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())
-- 
cgit v1.2.3