wayland: Fix a typo in DataControlDeviceV1Interface::sendPrimarySelection()
interfaceVersion() is not the same as the resource version.
This commit is contained in:
parent
d084629f3c
commit
160cc98597
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ void DataControlDeviceV1Interface::sendSelection(AbstractDataSource *other)
|
||||||
|
|
||||||
void DataControlDeviceV1Interface::sendPrimarySelection(KWaylandServer::AbstractDataSource *other)
|
void DataControlDeviceV1Interface::sendPrimarySelection(KWaylandServer::AbstractDataSource *other)
|
||||||
{
|
{
|
||||||
if (d->interfaceVersion() >= ZWLR_DATA_CONTROL_DEVICE_V1_PRIMARY_SELECTION_SINCE_VERSION) {
|
if (d->resource()->version() >= ZWLR_DATA_CONTROL_DEVICE_V1_PRIMARY_SELECTION_SINCE_VERSION) {
|
||||||
DataControlOfferV1Interface *offer = d->createDataOffer(other);
|
DataControlOfferV1Interface *offer = d->createDataOffer(other);
|
||||||
d->send_primary_selection(offer ? offer->resource() : nullptr);
|
d->send_primary_selection(offer ? offer->resource() : nullptr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue