From a0c6f70a0ef99961148653e522b10aebaa90410d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 26 Mar 2012 22:11:55 +0200 Subject: [PATCH] Drop refresh method on D-Bus interface The method is nowhere inside KWin called, nor used as a slot. It's also not used from any of the KCMs and the method does not do what the name says. It just shows and hides a window as big as the screen geometry. REVIEW: 104418 --- org.kde.KWin.xml | 1 - workspace.cpp | 12 ------------ workspace.h | 1 - 3 files changed, 14 deletions(-) diff --git a/org.kde.KWin.xml b/org.kde.KWin.xml index 160f94e406..a0b3a29e30 100644 --- a/org.kde.KWin.xml +++ b/org.kde.KWin.xml @@ -17,7 +17,6 @@ - diff --git a/workspace.cpp b/workspace.cpp index bae96c2658..0396dbe97c 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -1160,18 +1160,6 @@ bool Workspace::isNotManaged(const QString& title) return false; } -/** - * Refreshes all the client windows - */ -void Workspace::refresh() -{ - QWidget w(NULL, Qt::X11BypassWindowManagerHint); - w.setGeometry(Kephal::ScreenUtils::desktopGeometry()); - w.show(); - w.hide(); - QApplication::flush(); -} - /** * During virt. desktop switching, desktop areas covered by windows that are * going to be hidden are first obscured by new windows with no background diff --git a/workspace.h b/workspace.h index 2e400ea891..9df435cebb 100644 --- a/workspace.h +++ b/workspace.h @@ -538,7 +538,6 @@ public: public slots: void addRepaintFull(); - void refresh(); // Keybindings void slotSwitchDesktopNext();