From e0d712602f3d77fce76a0211372dae051089a518 Mon Sep 17 00:00:00 2001 From: Michael Jennings Date: Tue, 24 Aug 1999 20:02:01 +0000 Subject: [PATCH] Tue Aug 24 13:00:46 PDT 1999 Michael Jennings Fixed the bug reported by David Coulson that caused incorrect updates in trans mode. SVN revision: 93 --- ChangeLog | 6 ++++++ src/windows.c | 9 ++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 86444d1..5b2f07f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2340,3 +2340,9 @@ Tue Aug 24 12:31:23 PDT 1999 Michael Jennings Added more debugging output to pixmap.c to try and locate some bugs. ------------------------------------------------------------------------------- +Tue Aug 24 13:00:46 PDT 1999 Michael Jennings + + Fixed the bug reported by David Coulson that + caused incorrect updates in trans mode. + +------------------------------------------------------------------------------- diff --git a/src/windows.c b/src/windows.c index 2383b44..7fc266e 100644 --- a/src/windows.c +++ b/src/windows.c @@ -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); }