mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 16:29:44 -05:00
spelling: occurred
This commit is contained in:
parent
b8c93b3572
commit
ce06fcdbe0
@ -24,7 +24,7 @@
|
|||||||
#include <xcb/xcb.h>
|
#include <xcb/xcb.h>
|
||||||
|
|
||||||
bool AutoTypePlatformX11::m_catchXErrors = false;
|
bool AutoTypePlatformX11::m_catchXErrors = false;
|
||||||
bool AutoTypePlatformX11::m_xErrorOccured = false;
|
bool AutoTypePlatformX11::m_xErrorOccurred = false;
|
||||||
int (*AutoTypePlatformX11::m_oldXErrorHandler)(Display*, XErrorEvent*) = nullptr;
|
int (*AutoTypePlatformX11::m_oldXErrorHandler)(Display*, XErrorEvent*) = nullptr;
|
||||||
|
|
||||||
AutoTypePlatformX11::AutoTypePlatformX11()
|
AutoTypePlatformX11::AutoTypePlatformX11()
|
||||||
@ -153,7 +153,7 @@ bool AutoTypePlatformX11::registerGlobalShortcut(Qt::Key key, Qt::KeyboardModifi
|
|||||||
GrabModeAsync, GrabModeAsync);
|
GrabModeAsync, GrabModeAsync);
|
||||||
stopCatchXErrors();
|
stopCatchXErrors();
|
||||||
|
|
||||||
if (!m_xErrorOccured) {
|
if (!m_xErrorOccurred) {
|
||||||
m_currentGlobalKey = key;
|
m_currentGlobalKey = key;
|
||||||
m_currentGlobalModifiers = modifiers;
|
m_currentGlobalModifiers = modifiers;
|
||||||
m_currentGlobalKeycode = keycode;
|
m_currentGlobalKeycode = keycode;
|
||||||
@ -556,7 +556,7 @@ void AutoTypePlatformX11::startCatchXErrors()
|
|||||||
Q_ASSERT(!m_catchXErrors);
|
Q_ASSERT(!m_catchXErrors);
|
||||||
|
|
||||||
m_catchXErrors = true;
|
m_catchXErrors = true;
|
||||||
m_xErrorOccured = false;
|
m_xErrorOccurred = false;
|
||||||
m_oldXErrorHandler = XSetErrorHandler(x11ErrorHandler);
|
m_oldXErrorHandler = XSetErrorHandler(x11ErrorHandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -575,7 +575,7 @@ int AutoTypePlatformX11::x11ErrorHandler(Display* display, XErrorEvent* error)
|
|||||||
Q_UNUSED(error)
|
Q_UNUSED(error)
|
||||||
|
|
||||||
if (m_catchXErrors) {
|
if (m_catchXErrors) {
|
||||||
m_xErrorOccured = true;
|
m_xErrorOccurred = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -100,7 +100,7 @@ private:
|
|||||||
uint m_currentGlobalNativeModifiers;
|
uint m_currentGlobalNativeModifiers;
|
||||||
int m_modifierMask;
|
int m_modifierMask;
|
||||||
static bool m_catchXErrors;
|
static bool m_catchXErrors;
|
||||||
static bool m_xErrorOccured;
|
static bool m_xErrorOccurred;
|
||||||
static int (*m_oldXErrorHandler)(Display*, XErrorEvent*);
|
static int (*m_oldXErrorHandler)(Display*, XErrorEvent*);
|
||||||
|
|
||||||
static const int m_unicodeToKeysymLen;
|
static const int m_unicodeToKeysymLen;
|
||||||
|
Loading…
Reference in New Issue
Block a user