xwl: Fix unused warning in xwldrophandler.cpp

This commit is contained in:
Fushan Wen 2021-11-10 15:42:59 +08:00 committed by Aleix Pol Gonzalez
parent bad5752110
commit c517e6cebd

View file

@ -42,6 +42,7 @@ bool XwlDropHandler::handleClientMessage(xcb_client_message_event_t *event)
void XwlDropHandler::updateDragTarget(KWaylandServer::SurfaceInterface *surface, quint32 serial)
{
Q_UNUSED(serial)
auto client = workspace()->findClient([surface](const X11Client *c) {return c->surface() == surface;});
if (m_xvisit && client == m_xvisit->target()) {
return;