diff options
| author | Po Lu | 2022-09-12 14:01:52 +0800 |
|---|---|---|
| committer | Po Lu | 2022-09-12 14:01:52 +0800 |
| commit | 239bad7921fc38891dc4ee09b57c96d32100f19f (patch) | |
| tree | 68aab5e898ca5238cb0efa105fa97a55684597df /src | |
| parent | e0f137f079c346c5cb05f738ed96e9a09aaad4e6 (diff) | |
| download | emacs-239bad7921fc38891dc4ee09b57c96d32100f19f.tar.gz emacs-239bad7921fc38891dc4ee09b57c96d32100f19f.zip | |
Fix focus restoration upon x_mouse_leave again
* src/xterm.c (x_mouse_leave): Call xi_handle_focus_change after
changing the implicit focus.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index 12234351a32..48502f12d8d 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -13213,8 +13213,13 @@ x_mouse_leave (struct x_display_info *dpyinfo) | |||
| 13213 | 13213 | ||
| 13214 | device = xi_device_from_id (dpyinfo, dpyinfo->client_pointer_device); | 13214 | device = xi_device_from_id (dpyinfo, dpyinfo->client_pointer_device); |
| 13215 | 13215 | ||
| 13216 | if (device) | 13216 | if (device && device->focus_implicit_frame) |
| 13217 | device->focus_implicit_frame = NULL; | 13217 | { |
| 13218 | device->focus_implicit_frame = NULL; | ||
| 13219 | |||
| 13220 | /* The focus might have changed; compute the new focus. */ | ||
| 13221 | xi_handle_focus_change (dpyinfo); | ||
| 13222 | } | ||
| 13218 | } | 13223 | } |
| 13219 | #endif | 13224 | #endif |
| 13220 | } | 13225 | } |