Tue Aug 24 13:00:46 PDT 1999 Michael Jennings <mej@eterm.org>

Fixed the bug reported by David Coulson <technoir@linux.com> that
	caused incorrect updates in trans mode.


SVN revision: 93
This commit is contained in:
Michael Jennings 1999-08-24 20:02:01 +00:00
parent 57d71c5b42
commit e0d712602f
2 changed files with 8 additions and 7 deletions

View File

@ -2340,3 +2340,9 @@ Tue Aug 24 12:31:23 PDT 1999 Michael Jennings <mej@eterm.org>
Added more debugging output to pixmap.c to try and locate some bugs.
-------------------------------------------------------------------------------
Tue Aug 24 13:00:46 PDT 1999 Michael Jennings <mej@eterm.org>
Fixed the bug reported by David Coulson <technoir@linux.com> that
caused incorrect updates in trans mode.
-------------------------------------------------------------------------------

View File

@ -606,7 +606,8 @@ resize_window1(unsigned int width, unsigned int height)
if (curr_screen >= 0) /* this is not the first time thru */
scr_change_screen(curr_screen);
first_time = 0;
} else if (Options & Opt_pixmapTrans || Options & Opt_viewport_mode) {
} else if (((Options & Opt_pixmapTrans) || (images[image_bg].mode & MODE_TRANS))
|| ((Options & Opt_viewport_mode) || (images[image_bg].mode & MODE_VIEWPORT))) {
resize_subwindows(width, height);
scrollbar_show(0);
scr_expose(0, 0, width, height);
@ -637,22 +638,16 @@ void
resize_window(void)
{
Window root;
XEvent dummy;
int x, y;
unsigned int border, depth, width, height;
while (XCheckTypedWindowEvent(Xdisplay, TermWin.parent,
ConfigureNotify, &dummy));
/* do we come from an fontchange? */
if (font_change_count > 0) {
font_change_count--;
return;
}
XGetGeometry(Xdisplay, TermWin.parent, &root, &x, &y, &width, &height, &border, &depth);
/* parent already resized */
resize_window1(width, height);
}