libinput: Allow setting an empty output name

For tablets, it signifies "follow the active output".
This commit is contained in:
Aleix Pol 2022-10-26 19:21:25 +02:00 committed by Aleix Pol Gonzalez
parent a11681918a
commit 77c5198dc8

View file

@ -633,9 +633,6 @@ void Device::setOutputName(const QString &name)
}
setOutput(nullptr);
if (name.isEmpty()) {
return;
}
auto outputs = kwinApp()->platform()->outputs();
for (int i = 0; i < outputs.count(); ++i) {
if (!outputs[i]->isEnabled()) {