Commit 97f4599a authored by David Edmundson's avatar David Edmundson
Browse files

[klipper] Check version before calling v2 DataDevice methods

Calling a V2 method when our proxy is just at V1 is a fatal error.

This wasn't guarded. V2 isn't implemented fully anyway.

BUG: 424709
parent 59615cff
......@@ -312,7 +312,10 @@ void WaylandClipboard::clear(QClipboard::Mode mode)
if (mode == QClipboard::Clipboard) {
} else if (mode == QClipboard::Selection) {
if (zwlr_data_control_device_v1_get_version(m_device->object()) >=
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment