virtualptr: map to entire screen if no output is provided

fixes #6749
This commit is contained in:
Vaxry
2024-07-29 18:13:17 +02:00
parent 3a1afb53fd
commit 01560c9d7c
2 changed files with 19 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ CVirtualPointer::CVirtualPointer(SP<CVirtualPointerV1Resource> resource) : point
listeners.holdBegin = pointer->events.holdBegin.registerListener([this](std::any d) { pointerEvents.holdBegin.emit(d); });
listeners.holdEnd = pointer->events.holdEnd.registerListener([this](std::any d) { pointerEvents.holdEnd.emit(d); });
boundOutput = resource->boundOutput ? resource->boundOutput->szName : "auto";
boundOutput = resource->boundOutput ? resource->boundOutput->szName : "entire";
deviceName = pointer->name;
}