Fix focus restoration upon x_mouse_leave again
* src/xterm.c (x_mouse_leave): Call xi_handle_focus_change after changing the implicit focus.
This commit is contained in:
parent
e0f137f079
commit
239bad7921
1 changed files with 7 additions and 2 deletions
|
@ -13213,8 +13213,13 @@ x_mouse_leave (struct x_display_info *dpyinfo)
|
|||
|
||||
device = xi_device_from_id (dpyinfo, dpyinfo->client_pointer_device);
|
||||
|
||||
if (device)
|
||||
device->focus_implicit_frame = NULL;
|
||||
if (device && device->focus_implicit_frame)
|
||||
{
|
||||
device->focus_implicit_frame = NULL;
|
||||
|
||||
/* The focus might have changed; compute the new focus. */
|
||||
xi_handle_focus_change (dpyinfo);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue