mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 22:22:00 -07:00
data-device: Fix selection mismatch when wlr resets primary selection (#7598)
This commit is contained in:
@@ -133,7 +133,7 @@ CWLRDataDevice::CWLRDataDevice(SP<CZwlrDataControlDeviceV1> resource_) : resourc
|
|||||||
auto source = sourceR ? CWLRDataSource::fromResource(sourceR) : CSharedPointer<CWLRDataSource>{};
|
auto source = sourceR ? CWLRDataSource::fromResource(sourceR) : CSharedPointer<CWLRDataSource>{};
|
||||||
if (!source) {
|
if (!source) {
|
||||||
LOGM(LOG, "wlr reset primary selection received");
|
LOGM(LOG, "wlr reset primary selection received");
|
||||||
g_pSeatManager->setCurrentSelection(nullptr);
|
g_pSeatManager->setCurrentPrimarySelection(nullptr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user