xwl: Include errors and warnings
parent
2715cbc86c
commit
439dcc4b1f
|
@ -142,6 +142,8 @@ void Clipboard::doHandleXfixesNotify(xcb_xfixes_selection_notify_event_t *event)
|
||||||
|
|
||||||
if (X11Source *source = x11Source()) {
|
if (X11Source *source = x11Source()) {
|
||||||
source->getTargets();
|
source->getTargets();
|
||||||
|
} else {
|
||||||
|
qCWarning(KWIN_XWL) << "Could not create a source from" << event << Qt::hex << (event ? event->owner : -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,6 +151,7 @@ void Clipboard::x11OffersChanged(const QStringList &added, const QStringList &re
|
||||||
{
|
{
|
||||||
X11Source *source = x11Source();
|
X11Source *source = x11Source();
|
||||||
if (!source) {
|
if (!source) {
|
||||||
|
qCWarning(KWIN_XWL) << "offers changed when not having an X11Source!?";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -197,9 +197,11 @@ void X11Source::handleTargets()
|
||||||
);
|
);
|
||||||
auto *reply = xcb_get_property_reply(xcbConn, cookie, nullptr);
|
auto *reply = xcb_get_property_reply(xcbConn, cookie, nullptr);
|
||||||
if (!reply) {
|
if (!reply) {
|
||||||
|
qCDebug(KWIN_XWL) << "Failed to get selection property";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (reply->type != XCB_ATOM_ATOM) {
|
if (reply->type != XCB_ATOM_ATOM) {
|
||||||
|
qCDebug(KWIN_XWL) << "Wrong reply type";
|
||||||
free(reply);
|
free(reply);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue