From 16bc522bfcaef78b24eb512234679e8442ed5fa9 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sat, 28 Aug 2021 21:49:38 +0300 Subject: [PATCH] Rename Workspace::setCurrentOutput() to switchToOutput() --- src/activation.cpp | 2 +- src/useractions.cpp | 6 +++--- src/workspace.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/activation.cpp b/src/activation.cpp index 6ba6ef3e4d..c255eb9011 100644 --- a/src/activation.cpp +++ b/src/activation.cpp @@ -501,7 +501,7 @@ bool Workspace::activateNextClient(AbstractClient* c) } -void Workspace::setCurrentOutput(AbstractOutput *output) +void Workspace::switchToOutput(AbstractOutput *output) { if (!options->focusPolicyIsReasonable()) return; diff --git a/src/useractions.cpp b/src/useractions.cpp index 04f4bd03c0..0949ae9c80 100644 --- a/src/useractions.cpp +++ b/src/useractions.cpp @@ -1320,7 +1320,7 @@ void Workspace::slotSwitchToScreen() return; AbstractOutput *output = kwinApp()->platform()->findOutput(senderValue(sender())); if (output) { - setCurrentOutput(output); + switchToOutput(output); } } @@ -1328,14 +1328,14 @@ void Workspace::slotSwitchToNextScreen() { if (screenSwitchImpossible()) return; - setCurrentOutput(nextOutput(screens()->currentOutput())); + switchToOutput(nextOutput(screens()->currentOutput())); } void Workspace::slotSwitchToPrevScreen() { if (screenSwitchImpossible()) return; - setCurrentOutput(previousOutput(screens()->currentOutput())); + switchToOutput(previousOutput(screens()->currentOutput())); } void Workspace::slotWindowToScreen() diff --git a/src/workspace.h b/src/workspace.h index 9aedc4d5ff..b29af9265e 100644 --- a/src/workspace.h +++ b/src/workspace.h @@ -322,7 +322,7 @@ public: AbstractOutput *nextOutput(AbstractOutput *reference) const; AbstractOutput *previousOutput(AbstractOutput *reference) const; - void setCurrentOutput(AbstractOutput *output); + void switchToOutput(AbstractOutput *output); void setShowingDesktop(bool showing); bool showingDesktop() const;