summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-07-24 16:43:10 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-07-24 16:43:10 -0300
commitf22d3f3950cd84c36575686c271b7d15b4dfb683 (patch)
tree4611dae3ee1a8a545a411a54e3174ab9feb54e30 /src/leap
parentc01e87456bc5fded14778251bbd5dfe4fc4ebbd0 (diff)
parentbeac7a8ce70acb17c320580538510761dff3ac93 (diff)
Merge remote-tracking branch 'chiiph/bug/show_hide_improved' into develop
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/gui/mainwindow.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py
index ff19e17f..383f97bb 100644
--- a/src/leap/bitmask/gui/mainwindow.py
+++ b/src/leap/bitmask/gui/mainwindow.py
@@ -999,6 +999,12 @@ class MainWindow(QtGui.QMainWindow):
if not visible:
QtGui.QApplication.setQuitOnLastWindowClosed(True)
self.show()
+ if IS_LINUX:
+ # On ubuntu, activateWindow doesn't work reliably, so
+ # we do the following as a workaround. See
+ # https://bugreports.qt-project.org/browse/QTBUG-24932
+ # for more details
+ QtGui.QX11Info.setAppUserTime(0)
self.activateWindow()
self.raise_()
else: