… | |
… | |
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. |