From a5509fe5925e6099275d402d527f8b740ef091ec Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 3 Dec 2018 06:21:31 +0100 Subject: Sprinkle some qApp->setActiveWindow here and there Without this the window manager (e.g. KWin) doesn't know about the change, so Alt+TAB doesn't work as expected. Very annoying, so here's the fix! --- fswidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fswidget.cpp') diff --git a/fswidget.cpp b/fswidget.cpp index a386abc..7a9a252 100644 --- a/fswidget.cpp +++ b/fswidget.cpp @@ -484,6 +484,7 @@ void FSWidget::archiveMovie(){ } mMovieWizard->infoPage()->selectFirst(); mMovieWizard->show(); + qApp->setActiveWindow(mMovieWizard); } void FSWidget::archivePics(){ @@ -498,6 +499,7 @@ void FSWidget::archivePics(){ mNewPicsDlg->clearFiles(); mNewPicsDlg->addFiles(files); mNewPicsDlg->show(); + qApp->setActiveWindow(mNewPicsDlg); } void FSWidget::advanceDir(int by){ @@ -556,7 +558,7 @@ void FSWidget::doubleClicked(const QModelIndex &idx){ if(mime.startsWith("image")){ mViewer->setFile(idx.data(FullPathRole).toString()); mViewer->showMaximized(); - mViewer->raise(); + qApp->setActiveWindow(mViewer); }else if(mime.startsWith("video")){ playSelected(1, QString()); } -- cgit v1.2.3-70-g09d2