summaryrefslogtreecommitdiff
path: root/qt-recordmydesktop
diff options
context:
space:
mode:
Diffstat (limited to 'qt-recordmydesktop')
-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