mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-10-11 13:08:40 -04:00
Initialize cur_focus before it's used.
This commit is contained in:
parent
e0c59395da
commit
34b82da9aa
1 changed files with 2 additions and 1 deletions
|
@ -612,6 +612,8 @@ void AutoTypePlatformX11::SendKeyPressedEvent(KeySym keysym)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XGetInputFocus(m_dpy, &cur_focus, &revert_to);
|
||||||
|
|
||||||
event.display = m_dpy;
|
event.display = m_dpy;
|
||||||
event.window = cur_focus;
|
event.window = cur_focus;
|
||||||
event.root = m_rootWindow;
|
event.root = m_rootWindow;
|
||||||
|
@ -630,7 +632,6 @@ void AutoTypePlatformX11::SendKeyPressedEvent(KeySym keysym)
|
||||||
|
|
||||||
XQueryPointer(m_dpy, event.root, &root, &child, &root_x, &root_y, &x, &y, &mask);
|
XQueryPointer(m_dpy, event.root, &root, &child, &root_x, &root_y, &x, &y, &mask);
|
||||||
saved_mask = mask;
|
saved_mask = mask;
|
||||||
XGetInputFocus(m_dpy, &cur_focus, &revert_to);
|
|
||||||
|
|
||||||
/* determine keycode and mask for the given keysym */
|
/* determine keycode and mask for the given keysym */
|
||||||
keycode = GetKeycode(keysym, &mask);
|
keycode = GetKeycode(keysym, &mask);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue