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 | IMSetPosition (); |
1724 | IMSetPosition (); |
… | |
… | |
2765 | if (OPTION (Opt_jumpScroll) && refresh_limit < REFRESH_PERIOD) |
2765 | if (OPTION (Opt_jumpScroll) && refresh_limit < REFRESH_PERIOD) |
2766 | refresh_limit++; |
2766 | refresh_limit++; |
2767 | else |
2767 | else |
2768 | { |
2768 | { |
2769 | flag = true; |
2769 | flag = true; |
|
|
2770 | //TODO: due to popular request, implement "skipscroll" option here |
2770 | scr_refresh (); |
2771 | scr_refresh (); |
2771 | want_refresh = 1; |
2772 | want_refresh = 1; |
2772 | } |
2773 | } |
2773 | } |
2774 | } |
2774 | |
2775 | |