… | |
… | |
105 | if (cc->c2 == c2) return c1; |
105 | if (cc->c2 == c2) return c1; |
106 | cc = (*this)[cc->c1]; |
106 | cc = (*this)[cc->c1]; |
107 | } |
107 | } |
108 | |
108 | |
109 | // check to see whether this combination already exists otherwise |
109 | // check to see whether this combination already exists otherwise |
110 | for (cc = v.end (); cc-- > v.begin (); ) |
110 | for (cc = v.begin (); cc < v.end (); cc++) |
111 | if (cc->c1 == c1 && cc->c2 == c2) |
111 | if (cc->c1 == c1 && cc->c2 == c2) |
112 | return COMPOSE_LO + (cc - v.begin ()); |
112 | return COMPOSE_LO + (cc - v.begin ()); |
113 | |
113 | |
114 | // allocate a new combination |
114 | // allocate a new combination |
115 | if (v.size () == COMPOSE_HI - COMPOSE_LO + 1) |
115 | if (v.size () == COMPOSE_HI - COMPOSE_LO + 1) |
… | |
… | |
706 | if (recalc_y) |
706 | if (recalc_y) |
707 | szHint.y += DisplayHeight (dpy, display->screen) - szHint.height - 2 * ext_bwidth; |
707 | szHint.y += DisplayHeight (dpy, display->screen) - szHint.height - 2 * ext_bwidth; |
708 | |
708 | |
709 | ncol = width / fwidth; |
709 | ncol = width / fwidth; |
710 | nrow = height / fheight; |
710 | nrow = height / fheight; |
|
|
711 | |
|
|
712 | // When the size of the vt window is not a multiple of the cell |
|
|
713 | // size, i.e., when the wm does not honour our size hints, there are |
|
|
714 | // extra areas not covered by the terminal screen. Such gaps, when a |
|
|
715 | // bg pixmap is set, would have to be cleared manually to properly |
|
|
716 | // refresh the background. We take the simpler route and shrink the |
|
|
717 | // vt window so as to avoid creating gaps. |
|
|
718 | width = ncol * fwidth; |
|
|
719 | height = nrow * fheight; |
711 | } |
720 | } |
712 | |
721 | |
713 | /*----------------------------------------------------------------------*/ |
722 | /*----------------------------------------------------------------------*/ |
714 | /* |
723 | /* |
715 | * Tell the teletype handler what size the window is. |
724 | * Tell the teletype handler what size the window is. |
… | |
… | |
1650 | if (update_background_ev.is_active ()) |
1659 | if (update_background_ev.is_active ()) |
1651 | return; |
1660 | return; |
1652 | |
1661 | |
1653 | bg_invalidate (); |
1662 | bg_invalidate (); |
1654 | |
1663 | |
|
|
1664 | if (!mapped) |
|
|
1665 | return; |
|
|
1666 | |
1655 | ev_tstamp to_wait = 0.5 - (ev::now () - bg_valid_since); |
1667 | ev_tstamp to_wait = 0.5 - (ev::now () - bg_valid_since); |
1656 | |
1668 | |
1657 | if (to_wait <= 0.) |
1669 | if (to_wait <= 0.) |
1658 | bg_render (); |
1670 | bg_render (); |
1659 | else |
1671 | else |