diff options
| author | Po Lu | 2022-01-28 10:48:12 +0800 |
|---|---|---|
| committer | Po Lu | 2022-01-28 10:48:12 +0800 |
| commit | 47b7ec2a3d05bccfc710c9e0d0fc8278ed20afd8 (patch) | |
| tree | cc06ed348a7ef2aae45c079f4b29a5519c5e7fe1 /src | |
| parent | 8471c6f06c611dc9853eeb9508dff9844c75df6e (diff) | |
| download | emacs-47b7ec2a3d05bccfc710c9e0d0fc8278ed20afd8.tar.gz emacs-47b7ec2a3d05bccfc710c9e0d0fc8278ed20afd8.zip | |
Fix inappropriate use of killed xwidgets
* src/xwidget.c (x_draw_xwidget_webkit_view): Don't record
embedder or synthesize focus events if the widget is killed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xwidget.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xwidget.c b/src/xwidget.c index 0a85faf20c6..c5f4c0ee944 100644 --- a/src/xwidget.c +++ b/src/xwidget.c | |||
| @@ -2844,8 +2844,11 @@ x_draw_xwidget_glyph_string (struct glyph_string *s) | |||
| 2844 | #endif | 2844 | #endif |
| 2845 | 2845 | ||
| 2846 | #if defined HAVE_XINPUT2 || defined HAVE_PGTK | 2846 | #if defined HAVE_XINPUT2 || defined HAVE_PGTK |
| 2847 | record_osr_embedder (xv); | 2847 | if (!NILP (xww->buffer)) |
| 2848 | synthesize_focus_in_event (xww->widget_osr); | 2848 | { |
| 2849 | record_osr_embedder (xv); | ||
| 2850 | synthesize_focus_in_event (xww->widget_osr); | ||
| 2851 | } | ||
| 2849 | #endif | 2852 | #endif |
| 2850 | 2853 | ||
| 2851 | #ifdef USE_GTK | 2854 | #ifdef USE_GTK |