Silence the warning: Unhandled client message: "_GTK_LOAD_ICONTHEMES"

Qt Creator keeps printing that warning.

Change-Id: I0c94a5c2846b48c8aea7ffff1435775f04234656
Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
This commit is contained in:
Thiago Macieira 2016-02-22 20:21:44 -08:00 committed by Shawn Rutledge
parent bfdbfeb012
commit 00f1c4ac3a
3 changed files with 7 additions and 3 deletions

View File

@ -1954,7 +1954,9 @@ static const char * xcb_atomnames = {
"_COMPIZ_DECOR_PENDING\0" "_COMPIZ_DECOR_PENDING\0"
"_COMPIZ_DECOR_REQUEST\0" "_COMPIZ_DECOR_REQUEST\0"
"_COMPIZ_DECOR_DELETE_PIXMAP\0" "_COMPIZ_DECOR_DELETE_PIXMAP\0"
"_COMPIZ_TOOLKIT_ACTION\0" // \0\0 terminates loop. "_COMPIZ_TOOLKIT_ACTION\0"
"_GTK_LOAD_ICONTHEMES\0"
// \0\0 terminates loop.
}; };
QXcbAtom::Atom QXcbConnection::qatom(xcb_atom_t xatom) const QXcbAtom::Atom QXcbConnection::qatom(xcb_atom_t xatom) const

View File

@ -288,6 +288,7 @@ namespace QXcbAtom {
_COMPIZ_DECOR_REQUEST, _COMPIZ_DECOR_REQUEST,
_COMPIZ_DECOR_DELETE_PIXMAP, _COMPIZ_DECOR_DELETE_PIXMAP,
_COMPIZ_TOOLKIT_ACTION, _COMPIZ_TOOLKIT_ACTION,
_GTK_LOAD_ICONTHEMES,
NPredefinedAtoms, NPredefinedAtoms,

View File

@ -2033,8 +2033,9 @@ void QXcbWindow::handleClientMessageEvent(const xcb_client_message_event_t *even
} else if (event->type == atom(QXcbAtom::_COMPIZ_DECOR_PENDING) } else if (event->type == atom(QXcbAtom::_COMPIZ_DECOR_PENDING)
|| event->type == atom(QXcbAtom::_COMPIZ_DECOR_REQUEST) || event->type == atom(QXcbAtom::_COMPIZ_DECOR_REQUEST)
|| event->type == atom(QXcbAtom::_COMPIZ_DECOR_DELETE_PIXMAP) || event->type == atom(QXcbAtom::_COMPIZ_DECOR_DELETE_PIXMAP)
|| event->type == atom(QXcbAtom::_COMPIZ_TOOLKIT_ACTION)) { || event->type == atom(QXcbAtom::_COMPIZ_TOOLKIT_ACTION)
//silence the _COMPIZ messages for now || event->type == atom(QXcbAtom::_GTK_LOAD_ICONTHEMES)) {
//silence the _COMPIZ and _GTK messages for now
} else { } else {
qWarning() << "QXcbWindow: Unhandled client message:" << connection()->atomName(event->type); qWarning() << "QXcbWindow: Unhandled client message:" << connection()->atomName(event->type);
} }