mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 20:51:58 -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>{};
|
||||
if (!source) {
|
||||
LOGM(LOG, "wlr reset primary selection received");
|
||||
g_pSeatManager->setCurrentSelection(nullptr);
|
||||
g_pSeatManager->setCurrentPrimarySelection(nullptr);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user