summaryrefslogtreecommitdiff
path: root/qt-recordmydesktop/src/rmdFrame.py
diff options
context:
space:
mode:
Diffstat (limited to 'qt-recordmydesktop/src/rmdFrame.py')
-rw-r--r--qt-recordmydesktop/src/rmdFrame.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-recordmydesktop/src/rmdFrame.py b/qt-recordmydesktop/src/rmdFrame.py
index bb11778..2d574c6 100644
--- a/qt-recordmydesktop/src/rmdFrame.py
+++ b/qt-recordmydesktop/src/rmdFrame.py
@@ -52,12 +52,12 @@ class rmdFrame:
self.timer=QtCore.QTimer(None)
self.timer.connect(self.timer,QtCore.SIGNAL("timeout()"),
self.moveFrame)
- self.timer.start(10)
+ self.timer.start(100)
self.screen_width=QtGui.qApp.desktop().width()
self.screen_height=QtGui.qApp.desktop().height()
def moveFrame(self):
- if self.parent.values[15]==0:
+ if self.parent.values[15]==0 and self.window.isVisible() :
npos=QtGui.QCursor.pos()
x=npos.x()-self.w/2
y=npos.y()-self.h/2
© All Rights Reserved