xwl: Fix unused warning in xwldrophandler.cpp

master
Fushan Wen 3 years ago committed by Aleix Pol Gonzalez
parent bad5752110
commit c517e6cebd

@ -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;

Loading…
Cancel
Save