data-device: Fix selection mismatch when wlr resets primary selection (#7598)

This commit is contained in:
TheMical 2024-08-31 15:43:02 -04:00 committed by GitHub
parent 1ac2fc3f7e
commit cac59fefec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -133,7 +133,7 @@ CWLRDataDevice::CWLRDataDevice(SP<CZwlrDataControlDeviceV1> resource_) : resourc
auto source = sourceR ? CWLRDataSource::fromResource(sourceR) : CSharedPointer<CWLRDataSource>{};
if (!source) {
LOGM(LOG, "wlr reset primary selection received");
g_pSeatManager->setCurrentSelection(nullptr);
g_pSeatManager->setCurrentPrimarySelection(nullptr);
return;
}