wayland keyboard: suppress a warning for NO_KEYMAP
Some compositor calls send_keymap with WL_KEYBOARD_KEYMAP_FORMAT_NO_KEYMAP and it repeatedly makes "unknown keymap format" warnings. Moved from 7f78afdc9657d2393e98a8244bafc076b569d845 Change-Id: I92564fbe579bac5a56f0a842ac1b065330343ab5 Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
parent
306e68939c
commit
a25054d33d
@ -1199,6 +1199,9 @@ void QWaylandInputDevice::Keyboard::keyboard_keymap(uint32_t format, int32_t fd,
|
||||
{
|
||||
mKeymapFormat = format;
|
||||
#if QT_CONFIG(xkbcommon)
|
||||
if (format == WL_KEYBOARD_KEYMAP_FORMAT_NO_KEYMAP)
|
||||
return;
|
||||
|
||||
if (format != WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1) {
|
||||
qCWarning(lcQpaWayland) << "unknown keymap format:" << format;
|
||||
close(fd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user