From 7d25f2a8580b23023fb4e2a8c5caef43133eb9a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 22 Jul 2013 15:55:42 +0200 Subject: [PATCH] Drop Compositor::restartKWin No longer needed as we don't need to switch the graphics system any more. --- composite.cpp | 8 -------- composite.h | 7 ------- 2 files changed, 15 deletions(-) diff --git a/composite.cpp b/composite.cpp index efdae700ef..b4a0433196 100644 --- a/composite.cpp +++ b/composite.cpp @@ -762,14 +762,6 @@ void Compositor::setOverlayWindowVisibility(bool visible) } } -void Compositor::restartKWin(const QString &reason) -{ - kDebug(1212) << "restarting kwin for:" << reason; - char cmd[1024]; // copied from crashhandler - maybe not the best way to do? - sprintf(cmd, "%s --replace &", QFile::encodeName(QCoreApplication::applicationFilePath()).constData()); - system(cmd); -} - bool Compositor::isCompositingPossible() const { return CompositingPrefs::compositingPossible(); diff --git a/composite.h b/composite.h index b4158faf7c..6516ea954c 100644 --- a/composite.h +++ b/composite.h @@ -274,13 +274,6 @@ private: void setCompositeTimer(); bool windowRepaintsPending() const; - /** - * Restarts the Window Manager in case that the Qt's GraphicsSystem need to be changed - * for the chosen Compositing backend. - * @param reason The reason why the Window Manager is being restarted, this is logged - **/ - void restartKWin(const QString &reason); - /** * Whether the Compositor is currently suspended, 8 bits encoding the reason **/