diff --git a/src/wayland/seat_interface.cpp b/src/wayland/seat_interface.cpp index 0eff3e2043..873642db67 100644 --- a/src/wayland/seat_interface.cpp +++ b/src/wayland/seat_interface.cpp @@ -223,12 +223,8 @@ void SeatInterfacePrivate::registerDataControlDevice(DataControlDeviceV1Interfac q->setPrimarySelection(dataDevice->primarySelection()); }); - if (currentSelection) { - dataDevice->sendSelection(currentSelection); - } - if (currentPrimarySelection) { - dataDevice->sendPrimarySelection(currentPrimarySelection); - } + dataDevice->sendSelection(currentSelection); + dataDevice->sendPrimarySelection(currentPrimarySelection); } void SeatInterfacePrivate::registerPrimarySelectionDevice(PrimarySelectionDeviceV1Interface *primarySelectionDevice)