mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-29 02:46:53 -05:00
parent
727094abc6
commit
fc8cb7cd14
1 changed files with 4 additions and 2 deletions
|
|
@ -547,10 +547,12 @@ int AutoTypePlatformX11::x11ErrorHandler(Display* display, XErrorEvent* error)
|
||||||
|
|
||||||
XkbDescPtr AutoTypePlatformX11::getKeyboard()
|
XkbDescPtr AutoTypePlatformX11::getKeyboard()
|
||||||
{
|
{
|
||||||
XDeviceInfo* devices;
|
|
||||||
int num_devices;
|
int num_devices;
|
||||||
XID keyboard_id = XkbUseCoreKbd;
|
XID keyboard_id = XkbUseCoreKbd;
|
||||||
devices = XListInputDevices(m_dpy, &num_devices);
|
XDeviceInfo* devices = XListInputDevices(m_dpy, &num_devices);
|
||||||
|
if (!devices) {
|
||||||
|
return Q_NULLPTR;
|
||||||
|
}
|
||||||
|
|
||||||
for (int i = 0; i < num_devices; i++) {
|
for (int i = 0; i < num_devices; i++) {
|
||||||
if (QString(devices[i].name) == "Virtual core XTEST keyboard") {
|
if (QString(devices[i].name) == "Virtual core XTEST keyboard") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue