From 0d80af45c296e6658c6b81c6c5295d29a1a1059c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20I=C3=B1iguez=20Goia?= Date: Thu, 25 Jun 2020 18:52:29 +0200 Subject: [PATCH] UI: force to bring the allow/deny pop-up to the front This solves an issue where the pop-up was only displayed on the same screen/desktop/workspace where the main window was. --- ui/opensnitch/dialogs/prompt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/opensnitch/dialogs/prompt.py b/ui/opensnitch/dialogs/prompt.py index 58eb2edb..4094d8ca 100644 --- a/ui/opensnitch/dialogs/prompt.py +++ b/ui/opensnitch/dialogs/prompt.py @@ -34,7 +34,7 @@ class PromptDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]): def __init__(self, parent=None): QtWidgets.QDialog.__init__(self, parent, QtCore.Qt.WindowStaysOnTopHint) - + # Other interesting flags: QtCore.Qt.Tool | QtCore.Qt.BypassWindowManagerHint self._cfg = Config.get() self.setupUi(self) @@ -78,6 +78,7 @@ class PromptDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]): def showEvent(self, event): super(PromptDialog, self).showEvent(event) self.resize(540, 300) + self.activateWindow() def _checkbox_toggled(self, state): self.applyButton.setText("%s" % self._apply_text)