reset current window after processing sequence
This commit is contained in:
parent
1c10c5fcc4
commit
13b09346b9
@ -172,6 +172,9 @@ on_key_input(GLFWkeyevent *ev) {
|
|||||||
PyObject *ret = PyObject_CallMethod(
|
PyObject *ret = PyObject_CallMethod(
|
||||||
global_state.boss, "process_sequence", "O", ke);
|
global_state.boss, "process_sequence", "O", ke);
|
||||||
Py_CLEAR(ke);
|
Py_CLEAR(ke);
|
||||||
|
// the shortcut could have created a new window or closed the
|
||||||
|
// window, rendering the pointer no longer valid
|
||||||
|
w = window_for_window_id(active_window_id);
|
||||||
if (ret == NULL) { PyErr_Print(); }
|
if (ret == NULL) { PyErr_Print(); }
|
||||||
else {
|
else {
|
||||||
bool consumed = ret == Py_True;
|
bool consumed = ret == Py_True;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user