gnome-shell/js
Carlos Garnacho f5996a9232 inputMethod: Compare ibus context before processing key event result
In the xwayland-on-demand scenario, it may happen that Xwayland is
shutdown (causing a restart of ibus-daemon to drop ibus-x11) while
we are typing.

If we have a bit of bad luck, this will cause the IBusInputContext
to be disposed (due to its bus "closing") at a time when we have
an ibus_input_context_process_key_event_async() request on the fly.

As the object is disposed in between this would tickle JS (rightfully
complaining that it's been disposed under its feet) and make us pass
an actually NULL IBusInputContext to the corresponding _finish()
function (despite the IBusInputContext being still held alive by some
other refs). This will assert and abort in
ibus_input_context_process_key_event_async_finish() then.

To handle this, listen for IBusInputContext::destroy, and reset our
internal state, this way we can compare on the JS side that the
IBusInputContext is indeed an up-to-date one.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/813
2019-11-08 12:23:15 +00:00
..
extensionPrefs cleanup: Use (un)block_signal_handler() convenience wrapper 2019-10-30 19:40:15 +00:00
gdm st: Remove StBin's align properties 2019-11-04 21:27:56 +01:00
misc inputMethod: Compare ibus context before processing key event result 2019-11-08 12:23:15 +00:00
perf overview: Add OverviewActor and use as main actor of the Overlay 2019-10-16 15:26:13 +00:00
portalHelper cleanup: Use more template strings 2019-11-05 01:51:29 +00:00
ui power: Handle "100% but charging" case 2019-11-07 12:58:54 -08:00
js-resources.gresource.xml accessibility: Add pointer accessibility support 2019-06-06 09:13:29 +02:00
meson.build build: Use dedicated resources for helper programs 2018-08-14 17:28:04 +00:00
portal-resources.gresource.xml build: Include params.js in portal-helper gresources 2018-10-23 15:38:31 +00:00
prefs-resources.gresource.xml build: Use dedicated resources for helper programs 2018-08-14 17:28:04 +00:00