From 6f6bba66f6280d1e0b2bda548e65a5c2c9821d78 Mon Sep 17 00:00:00 2001 From: nowrep Date: Mon, 21 Oct 2013 15:59:25 +0200 Subject: [PATCH] X11: Use different WM_CLASS for private browsing window --- src/lib/app/qupzilla.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/app/qupzilla.cpp b/src/lib/app/qupzilla.cpp index 4c7e159fd..b7641bb2b 100644 --- a/src/lib/app/qupzilla.cpp +++ b/src/lib/app/qupzilla.cpp @@ -154,7 +154,12 @@ QupZilla::QupZilla(Qz::BrowserWindow type, QUrl startUrl) QTimer::singleShot(0, this, SLOT(postLaunch())); - QzTools::setWmClass("QupZilla Browser", this); + if (mApp->isPrivateSession()) { + QzTools::setWmClass("QupZilla Browser (Private Window)", this); + } + else { + QzTools::setWmClass("QupZilla Browser", this); + } } void QupZilla::openWithTab(WebTab* tab)