xcb: Don't log mouse moves by default
It produces too much log output, so now it must be enabled by both defining Q_XCB_DEBUG and enabling the qt.qpa.input category. Change-Id: Id2eb7545a7cd07dadd70da31a1f17c2999feec0d Reviewed-by: Alexander Volkov <a.volkov@rusbitech.ru> Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
This commit is contained in:
parent
175b12beba
commit
2e63f7bf92
@ -812,8 +812,10 @@ void QXcbConnection::handleMotionNotify(xcb_generic_event_t *ev)
|
||||
xcb_motion_notify_event_t *event = (xcb_motion_notify_event_t *)ev;
|
||||
|
||||
m_buttons = (m_buttons & ~0x7) | translateMouseButtons(event->state);
|
||||
if (Q_UNLIKELY(lcQpaXInput().isDebugEnabled()))
|
||||
qDebug("xcb: moved mouse to %4d, %4d; button state %X", event->event_x, event->event_y, static_cast<unsigned int>(m_buttons));
|
||||
#ifdef Q_XCB_DEBUG
|
||||
qCDebug(lcQpaXInput, "xcb: moved mouse to %4d, %4d; button state %X",
|
||||
event->event_x, event->event_y, static_cast<unsigned int>(m_buttons));
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef QT_NO_XKB
|
||||
|
Loading…
x
Reference in New Issue
Block a user