Fix a typo

This probably needs to be currentPrimarySelection.
This commit is contained in:
Vlad Zahorodnii 2021-03-23 21:08:56 +02:00
parent a50f84a868
commit 06cfe1a24a

View file

@ -944,7 +944,7 @@ void SeatInterface::setFocusedKeyboardSurface(SurfaceInterface *surface)
d->globalKeyboard.focus.primarySelections = primarySelectionDevices;
for (auto primaryDataDevice : primarySelectionDevices) {
if (d->currentSelection) {
if (d->currentPrimarySelection) {
primaryDataDevice->sendSelection(d->currentPrimarySelection);
} else {
primaryDataDevice->sendClearSelection();