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

backends/drm: Port from kwinApp()

kwinApp() lives in abstraction layer above and we can use
QCoreApplication to terminate the application.
parent 2d2f972b
Pipeline #225751 passed with stage
in 15 minutes and 50 seconds
......@@ -23,7 +23,6 @@
#include "drm_render_backend.h"
#include "drm_virtual_output.h"
#include "gbm_dmabuf.h"
#include "main.h"
#include "outputconfiguration.h"
#include "renderloop.h"
#include "session.h"
......@@ -32,6 +31,7 @@
#include <KCoreAddons>
#include <KLocalizedString>
// Qt
#include <QCoreApplication>
#include <QSocketNotifier>
// system
#include <algorithm>
......@@ -251,7 +251,7 @@ void DrmBackend::handleUdevEvent()
if (gpu) {
if (primaryGpu() == gpu) {
qCCritical(KWIN_DRM) << "Primary gpu has been removed! Quitting...";
kwinApp()->quit();
QCoreApplication::exit(1);
return;
} else {
removeGpu(gpu);
......
Supports Markdown
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