Rename Workspace::setCurrentOutput() to switchToOutput()

This commit is contained in:
Vlad Zahorodnii 2021-08-28 21:49:38 +03:00
parent b08807cc36
commit 16bc522bfc
3 changed files with 5 additions and 5 deletions

View file

@ -501,7 +501,7 @@ bool Workspace::activateNextClient(AbstractClient* c)
} }
void Workspace::setCurrentOutput(AbstractOutput *output) void Workspace::switchToOutput(AbstractOutput *output)
{ {
if (!options->focusPolicyIsReasonable()) if (!options->focusPolicyIsReasonable())
return; return;

View file

@ -1320,7 +1320,7 @@ void Workspace::slotSwitchToScreen()
return; return;
AbstractOutput *output = kwinApp()->platform()->findOutput(senderValue(sender())); AbstractOutput *output = kwinApp()->platform()->findOutput(senderValue(sender()));
if (output) { if (output) {
setCurrentOutput(output); switchToOutput(output);
} }
} }
@ -1328,14 +1328,14 @@ void Workspace::slotSwitchToNextScreen()
{ {
if (screenSwitchImpossible()) if (screenSwitchImpossible())
return; return;
setCurrentOutput(nextOutput(screens()->currentOutput())); switchToOutput(nextOutput(screens()->currentOutput()));
} }
void Workspace::slotSwitchToPrevScreen() void Workspace::slotSwitchToPrevScreen()
{ {
if (screenSwitchImpossible()) if (screenSwitchImpossible())
return; return;
setCurrentOutput(previousOutput(screens()->currentOutput())); switchToOutput(previousOutput(screens()->currentOutput()));
} }
void Workspace::slotWindowToScreen() void Workspace::slotWindowToScreen()

View file

@ -322,7 +322,7 @@ public:
AbstractOutput *nextOutput(AbstractOutput *reference) const; AbstractOutput *nextOutput(AbstractOutput *reference) const;
AbstractOutput *previousOutput(AbstractOutput *reference) const; AbstractOutput *previousOutput(AbstractOutput *reference) const;
void setCurrentOutput(AbstractOutput *output); void switchToOutput(AbstractOutput *output);
void setShowingDesktop(bool showing); void setShowingDesktop(bool showing);
bool showingDesktop() const; bool showingDesktop() const;