Commit a6ff3001 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

xwayland: Send a notification when Xwayland crashes

Send a notification when Xwayland crashes to provide the user some
feedback regarding why all X11 clients have disappeared.
parent 432cfb44
......@@ -287,3 +287,8 @@ Comment[x-test]=xxA graphics reset event occurredxx
Comment[zh_CN]=发生了图形重置事件
Comment[zh_TW]=發生了圖形重置事件
Action=Popup
[Event/xwaylandcrash]
Name=Xwayland Crash
Comment=Xwayland has crashed
Action=Popup
......@@ -19,6 +19,7 @@
#include "xwayland_logging.h"
#include <KLocalizedString>
#include <KNotification>
#include <KSelectionOwner>
#include <QAbstractEventDispatcher>
......@@ -243,6 +244,7 @@ void Xwayland::handleXwaylandFinished(int exitCode, QProcess::ExitStatus exitSta
void Xwayland::handleXwaylandCrashed()
{
KNotification::event(QStringLiteral("xwaylandcrash"), i18n("Xwayland has crashed"));
m_resetCrashCountTimer->stop();
switch (options->xwaylandCrashPolicy()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment