Rename Workspace::setCurrentOutput() to switchToOutput()
This commit is contained in:
parent
b08807cc36
commit
16bc522bfc
3 changed files with 5 additions and 5 deletions
|
@ -501,7 +501,7 @@ bool Workspace::activateNextClient(AbstractClient* c)
|
|||
|
||||
}
|
||||
|
||||
void Workspace::setCurrentOutput(AbstractOutput *output)
|
||||
void Workspace::switchToOutput(AbstractOutput *output)
|
||||
{
|
||||
if (!options->focusPolicyIsReasonable())
|
||||
return;
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue