Drop uneeded toPoint

outputAt has an overload
This commit is contained in:
David Edmundson 2022-07-14 12:00:15 +01:00 committed by Vlad Zahorodnii
parent 0c5da45cfc
commit 862aae9d35

View file

@ -418,7 +418,7 @@ int WorkspaceWrapper::numScreens() const
int WorkspaceWrapper::screenAt(const QPointF &pos) const
{
return kwinApp()->platform()->enabledOutputs().indexOf(kwinApp()->platform()->outputAt(pos.toPoint()));
return kwinApp()->platform()->enabledOutputs().indexOf(kwinApp()->platform()->outputAt(pos));
}
int WorkspaceWrapper::activeScreen() const