Changes
- Try to fix a long-standing bug that causes a deadlock when closing a terminal window.
Repro:- Start a multi-user desktop session.
- Run a terminal window with the bash shell.
- Run vim in bash.
- Refocus the terminal window.
- Close the terminal window by clicking the cross.
- GUI: Sync keyboard layouts between multi-focused GUI windows (Ctrl+LeftClick).