Hello,

I am using rxvt-unicode with a tiled window manager and i have the
same problem as described on a previous thread on this mailing-list
("Graphical glitch when tint is enabled", started on February 22),
that is, when using the transparency feature and the window width and
height are not multiple of the column and row size, the "dead region"
do not render properly.

I look at the code and find that the problem is located in the
function rxvt_term::window_calc (file src/main.C):

,----[ src/main.C:734 ]
|   if (newwidth && newwidth - szHint.base_width < max_width)
|     {
|       szHint.width = newwidth;
|       width = newwidth - szHint.base_width;
|     }
|   else
|     {
|       min_it (width, max_width);
|       szHint.width = szHint.base_width + width;
|     }
|
|   if (newheight && newheight - szHint.base_height < max_height)
|     {
|       szHint.height = newheight;
|       height = newheight - szHint.base_height;
|     }
|   else
|     {
|       min_it (height, max_height);
|       szHint.height = szHint.base_height + height;
|     }
`----

width and height variables are always equal to the sizes of the whole
window (without borders) even if they are not multiple of font sizes,
so the vt window overlap dead region and it is not rendered.

A simple solution is to add:

,----
|   width = ncol * fwidth;
|   height = nrow * fheight;
`----

at the end of this function.

-- 
Jérémie Dimino <[EMAIL PROTECTED]>

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to