mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-19 00:09:48 +01:00
data-device: Fix selection mismatch when wlr resets primary selection (#7598)
This commit is contained in:
parent
1ac2fc3f7e
commit
cac59fefec
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue