Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-98344

Support multiple keyboards on x11/xcb

    XMLWordPrintable

Details

    • Linux/Wayland, Linux/X11

    Description

      For X11/XCB, only core keyboard device is supported now, see 

      QXcbKeyboard::QXcbKeyboard(QXcbConnection *connection)
          : QXcbObject(connection)
      {
          core_device_id = 0;
          if (connection->hasXKB()) {
              selectEvents();
              core_device_id = xkb_x11_get_core_keyboard_device_id(xcb_connection());
              if (core_device_id == -1) {
                  qCWarning(lcQpaXcb, "failed to get core keyboard device info");
                  return;
              }
          } else {
              m_key_symbols = xcb_key_symbols_alloc(xcb_connection());
          }
      
          updateKeymap();
      }
      

      When user has multiple keyboard, expecially with different settings, it has issues.

      Haven't checked status on Wayland, but assume same now.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              liaqi Liang Qi
              liaqi Liang Qi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes