1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*----------------------------------------------------------------------* |
2 | * File: command.C |
2 | * File: command.C |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * |
4 | * |
5 | * All portions of code are copyright by their respective author/s. |
5 | * All portions of code are copyright by their respective author/s. |
6 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
6 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
… | |
… | |
1714 | if (!focus) |
1714 | if (!focus) |
1715 | { |
1715 | { |
1716 | focus = 1; |
1716 | focus = 1; |
1717 | want_refresh = 1; |
1717 | want_refresh = 1; |
1718 | |
1718 | |
1719 | HOOK_INVOKE ((this, HOOK_FOCUS_OUT, DT_END)); |
1719 | HOOK_INVOKE ((this, HOOK_FOCUS_IN, DT_END)); |
1720 | |
1720 | |
1721 | #if USE_XIM |
1721 | #if USE_XIM |
1722 | if (Input_Context != NULL) |
1722 | if (Input_Context != NULL) |
1723 | { |
1723 | { |
1724 | IMSetStatusPosition (); |
1724 | IMSetPosition (); |
1725 | XSetICFocus (Input_Context); |
1725 | XSetICFocus (Input_Context); |
1726 | } |
1726 | } |
1727 | #endif |
1727 | #endif |
1728 | #if CURSOR_BLINK |
1728 | #if CURSOR_BLINK |
1729 | if (OPTION (Opt_cursorBlink)) |
1729 | if (OPTION (Opt_cursorBlink)) |