[Konversation-devel] [Bug 247263] Konversation lacks a shortcut to Toggle Main Window
Eike Hein
hein at kde.org
Tue Aug 10 21:36:52 CEST 2010
https://bugs.kde.org/show_bug.cgi?id=247263
--- Comment #3 from Eike Hein <hein kde org> 2010-08-10 21:36:51 ---
commit 1ab55d2b294b43e54c65fe1868e947ca5dc62946
Author: Eike Hein <hein at kde.org>
Date: Tue Aug 10 21:36:55 2010 +0200
Pull to current desktop on show by action.
CCBUG:247263
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index caf8b32..8dc435e 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -855,6 +855,7 @@ void MainWindow::toggleVisibility()
if (isMinimized())
{
KWindowSystem::unminimizeWindow(winId());
+ KWindowSystem::setOnDesktop(winId(), KWindowSystem::currentDesktop());
KWindowSystem::activateWindow(winId());
}
else if (isVisible())
@@ -865,7 +866,10 @@ void MainWindow::toggleVisibility()
KWindowSystem::minimizeWindow(winId());
}
else if (Preferences::self()->showTrayIcon())
+ {
+ KWindowSystem::setOnDesktop(winId(), KWindowSystem::currentDesktop());
m_trayIcon->restore();
+ }
}
#include "mainwindow.moc"
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Konversation-devel
mailing list