From 444ce02d8d7c5d40ec1503ee019a69d29225df9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 18 Dec 2016 12:05:19 +0100 Subject: [PATCH] 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 --- killwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/killwindow.cpp b/killwindow.cpp index 4667cc8ade..bf4f8ea28d 100644 --- a/killwindow.cpp +++ b/killwindow.cpp @@ -23,8 +23,11 @@ along with this program. If not, see . #include "abstract_client.h" #include "main.h" #include "platform.h" +#include "osd.h" #include "unmanaged.h" +#include + 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; }