aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Gräßlin <[email protected]>2016-12-18 12:05:19 +0100
committerMartin Gräßlin <[email protected]>2016-12-21 19:45:02 +0100
commit444ce02d8d7c5d40ec1503ee019a69d29225df9e (patch)
tree4589292ac8a874a4d22d555b0b5c3c21cdfef53c
parent07c6878ff079291b1b29362705b4b80754773a17 (diff)
Use OnScreenNotification in kill window
Summary: Inform how to kill a window. Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D3724
-rw-r--r--killwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/killwindow.cpp b/killwindow.cpp
index 4667cc8..bf4f8ea 100644
--- a/killwindow.cpp
+++ b/killwindow.cpp
@@ -23,8 +23,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "abstract_client.h"
#include "main.h"
#include "platform.h"
+#include "osd.h"
#include "unmanaged.h"
+#include <KLocalizedString>
+
namespace KWin
{
@@ -38,8 +41,11 @@ KillWindow::~KillWindow()
void KillWindow::start()
{
+ OSD::show(i18n("Select window to force close with left click or enter.\nEscape or right click to cancel."),
+ QStringLiteral("window-close"));
kwinApp()->platform()->startInteractiveWindowSelection(
[] (KWin::Toplevel *t) {
+ OSD::hide();
if (!t) {
return;
}