… | |
… | |
1652 | { |
1652 | { |
1653 | if (!TermWin.focus) |
1653 | if (!TermWin.focus) |
1654 | { |
1654 | { |
1655 | TermWin.focus = 1; |
1655 | TermWin.focus = 1; |
1656 | want_refresh = 1; |
1656 | want_refresh = 1; |
1657 | #ifdef USE_XIM |
1657 | #if USE_XIM |
1658 | if (Input_Context != NULL) |
1658 | if (Input_Context != NULL) |
1659 | { |
1659 | { |
1660 | IMSetStatusPosition (); |
1660 | IMSetStatusPosition (); |
1661 | XSetICFocus (Input_Context); |
1661 | XSetICFocus (Input_Context); |
1662 | } |
1662 | } |
1663 | #endif |
1663 | #endif |
1664 | #ifdef CURSOR_BLINK |
1664 | #if CURSOR_BLINK |
1665 | if (options & Opt_cursorBlink) |
1665 | if (options & Opt_cursorBlink) |
1666 | cursor_blink_ev.start (NOW + BLINK_INTERVAL); |
1666 | cursor_blink_ev.start (NOW + BLINK_INTERVAL); |
1667 | #endif |
1667 | #endif |
1668 | #ifdef OFF_FOCUS_FADING |
1668 | #if OFF_FOCUS_FADING |
1669 | if (rs[Rs_fade]) |
1669 | if (rs[Rs_fade]) |
1670 | { |
1670 | { |
1671 | pix_colors = pix_colors_focused; |
1671 | pix_colors = pix_colors_focused; |
1672 | scr_recolour (); |
1672 | scr_recolour (); |
1673 | } |
1673 | } |
… | |
… | |
1687 | iso14755buf = 0; |
1687 | iso14755buf = 0; |
1688 | #endif |
1688 | #endif |
1689 | #if ENABLE_OVERLAY |
1689 | #if ENABLE_OVERLAY |
1690 | scr_overlay_off (); |
1690 | scr_overlay_off (); |
1691 | #endif |
1691 | #endif |
1692 | #ifdef USE_XIM |
1692 | #if USE_XIM |
1693 | if (Input_Context != NULL) |
1693 | if (Input_Context != NULL) |
1694 | XUnsetICFocus (Input_Context); |
1694 | XUnsetICFocus (Input_Context); |
1695 | #endif |
1695 | #endif |
1696 | #ifdef CURSOR_BLINK |
1696 | #if CURSOR_BLINK |
1697 | if (options & Opt_cursorBlink) |
1697 | if (options & Opt_cursorBlink) |
1698 | cursor_blink_ev.stop (); |
1698 | cursor_blink_ev.stop (); |
1699 | hidden_cursor = 0; |
1699 | hidden_cursor = 0; |
1700 | #endif |
1700 | #endif |
1701 | #ifdef OFF_FOCUS_FADING |
1701 | #if OFF_FOCUS_FADING |
1702 | if (rs[Rs_fade]) |
1702 | if (rs[Rs_fade]) |
1703 | { |
1703 | { |
1704 | pix_colors = pix_colors_unfocused; |
1704 | pix_colors = pix_colors_unfocused; |
1705 | scr_recolour (); |
1705 | scr_recolour (); |
1706 | } |
1706 | } |
… | |
… | |
2561 | } |
2561 | } |
2562 | } |
2562 | } |
2563 | |
2563 | |
2564 | if (n > (int) (sizeof (TermWin.parent) / sizeof (TermWin.parent[0]))) |
2564 | if (n > (int) (sizeof (TermWin.parent) / sizeof (TermWin.parent[0]))) |
2565 | { |
2565 | { |
2566 | XSetWindowBackground (disp, TermWin.parent[0], pix_colors_focused[Color_fg]); |
2566 | XSetWindowBackground (disp, TermWin.parent[0], pix_colors_focused[Color_border]); |
2567 | XSetWindowBackground (disp, TermWin.vt, pix_colors_focused[Color_bg]); |
2567 | XSetWindowBackground (disp, TermWin.vt, pix_colors_focused[Color_bg]); |
2568 | am_transparent = 0; |
2568 | am_transparent = 0; |
2569 | /* XXX: also turn off Opt_transparent? */ |
2569 | /* XXX: also turn off Opt_transparent? */ |
2570 | } |
2570 | } |
2571 | else |
2571 | else |