diff --git a/lib/python/gladevcp/xembed.py b/lib/python/gladevcp/xembed.py index 830cc7a07c2..975828d8b01 100644 --- a/lib/python/gladevcp/xembed.py +++ b/lib/python/gladevcp/xembed.py @@ -108,6 +108,9 @@ def forward(w, e, fw): if not fe: return fw.send_event(fe) + # send_event only queues the request; flush so a KeyRelease is not + # held back until the next key event + d.flush() window.connect_after("key-press-event", forward, fw) window.connect("key-release-event", forward, fw)