summaryrefslogtreecommitdiffstats
path: root/src/dialog.h
diff options
context:
space:
mode:
authorSimon Rettberg2019-07-04 15:04:58 +0200
committerSimon Rettberg2019-07-04 15:04:58 +0200
commit65a4fff11c84c886bce97e103f6177becd34c879 (patch)
treefd0e639b21c1663f73db05b683b192ac2d6cc7b5 /src/dialog.h
parentGive 'last lectures' a section as it's expected everywhere (diff)
downloadvmchooser2-65a4fff11c84c886bce97e103f6177becd34c879.tar.gz
vmchooser2-65a4fff11c84c886bce97e103f6177becd34c879.tar.xz
vmchooser2-65a4fff11c84c886bce97e103f6177becd34c879.zip
Change WM spawning once again to hopefully fix invisible chooser
Now we wait until the chooser window is actually visible and only then try to spawn openbox. This leads to the problem of vmchooser not having focus in case we really didn't have a WM before. For that reason, try to give focus to vmchooser again by calling wmctrl...........
Diffstat (limited to 'src/dialog.h')
-rw-r--r--src/dialog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dialog.h b/src/dialog.h
index 5c3af17..cc7f50e 100644
--- a/src/dialog.h
+++ b/src/dialog.h
@@ -47,6 +47,7 @@ class Dialog : public QDialog {
void mousePressEvent(QMouseEvent *event);
bool eventFilter(QObject *target, QEvent *event);
void keyPressEvent(QKeyEvent * e);
+ void showEvent(QShowEvent * e) override;
private: // Private vars n methods
Ui::Dialog *ui;