From 223b3d1da9d4d73216b3e58f4e8c3d6b2e56739a Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Mon, 21 Jan 2008 09:59:58 +0000 Subject: [PATCH] (struct scroll_bar): New member `redraw_needed_p'. --- src/ChangeLog | 9 +++++++++ src/macterm.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 1ec2ad7aa85..1c4b08d24d7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,12 @@ +2008-01-21 YAMAMOTO Mitsuharu + + * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p. + (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p + is set even without positional changes. + (x_scroll_bar_clear): Set bar->redraw_needed_p. + + * macterm.h (struct scroll_bar): New member `redraw_needed_p'. + 2008-01-19 Kenichi Handa * coding.c (detect_coding_iso2022): New arg latin_extra_code_state. diff --git a/src/macterm.h b/src/macterm.h index e596a148dcd..69d987b0cdc 100644 --- a/src/macterm.h +++ b/src/macterm.h @@ -435,6 +435,9 @@ struct scroll_bar { being dragged, this is Qnil. */ Lisp_Object dragging; + /* t if redraw needed in the next XTset_vertical_scroll_bar call. */ + Lisp_Object redraw_needed_p; + #ifdef USE_TOOLKIT_SCROLL_BARS /* The position and size of the scroll bar handle track area in pixels, relative to the frame. */ -- 2.39.2