Skip to content

Commit

Permalink
[qtwayland] Signal clipboard change when window unfocus clears the co…
Browse files Browse the repository at this point in the history
…ntent. Fixes JB#46506

QWaylandWindow::unfocus() clears the offer and refocus later will get
a new one, but only if there's something in the clipboard.
Clipboard cleared between those two failed to signal any change to
application side.
  • Loading branch information
pvuorela committed Oct 11, 2019
1 parent 40f8c20 commit 4cf2250
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/qwaylanddatadevice.cpp
Expand Up @@ -80,6 +80,7 @@ QWaylandDataOffer *QWaylandDataDevice::selectionOffer() const
void QWaylandDataDevice::invalidateSelectionOffer()
{
m_selectionOffer.reset();
QGuiApplicationPrivate::platformIntegration()->clipboard()->emitChanged(QClipboard::Clipboard);
}

QWaylandDataSource *QWaylandDataDevice::selectionSource() const
Expand Down

0 comments on commit 4cf2250

Please sign in to comment.