[PATCH] wpa_gui: Use dialog window type

Martin Kletzander mkletzan
Wed Oct 29 03:12:36 PDT 2014


This helps window managers treat the window properly.  Mostly tiling WMs
are affected by this.  All other windows inherit this option from
QDialog already.

Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
 wpa_supplicant/wpa_gui-qt4/wpagui.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wpa_supplicant/wpa_gui-qt4/wpagui.cpp b/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
index 6bba8d2..91874d4 100644
--- a/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
+++ b/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
@@ -36,6 +36,7 @@ WpaGui::WpaGui(QApplication *_app, QWidget *parent, const char *, Qt::WFlags)
 	: QMainWindow(parent), app(_app)
 {
 	setupUi(this);
+	this->setWindowFlags(Qt::Dialog);

 #ifdef CONFIG_NATIVE_WINDOWS
 	fileStopServiceAction = new QAction(this);
-- 
2.1.2




More information about the Hostap mailing list