forked from pool/libqt5-qtbase
3ad6682989
Update to 5.4.0 OBS-URL: https://build.opensuse.org/request/show/265462 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtbase?expand=0&rev=33
33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
From: Martin Gräßlin <mgraesslin@kde.org>
|
|
Date: Wed, 10 Dec 2014 06:27:23 +0000
|
|
Subject: Handle SelectionClientClose in QXcbClipboard
|
|
X-Git-Url: http://quickgit.kde.org/?p=qt%2Fqtbase.git&a=commitdiff&h=6a7ee92b3958e3a3ebc16be15f8bd34217ec7bd2
|
|
---
|
|
Handle SelectionClientClose in QXcbClipboard
|
|
|
|
QXcbClipboard listens for subtype SelectionClientClose of Xfixes
|
|
SelectionNotify event, but doesn't handle it. When the client holding
|
|
the clipboard selection closes the Clipboard becomes empty and thus the
|
|
change should be emitted.
|
|
|
|
This fixes downstream KDE Bug #329174.
|
|
|
|
Change-Id: I19fb8cfd7bd3b249c0bc6ca2a724a9aeeb05ac7e
|
|
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
|
|
Reviewed-by: Aleix Pol Gonzalez <aleixpol@kde.org>
|
|
---
|
|
|
|
|
|
--- a/src/plugins/platforms/xcb/qxcbclipboard.cpp
|
|
+++ b/src/plugins/platforms/xcb/qxcbclipboard.cpp
|
|
@@ -742,7 +742,8 @@
|
|
m_xClipboard[mode]->reset();
|
|
}
|
|
emitChanged(mode);
|
|
- }
|
|
+ } else if (event->subtype == XCB_XFIXES_SELECTION_EVENT_SELECTION_CLIENT_CLOSE)
|
|
+ emitChanged(mode);
|
|
}
|
|
|
|
|