From 70385fe6309c734b06cce5b823f3a3c5bd16e071 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Mon, 5 Mar 2007 08:18:36 +0000 Subject: [PATCH] (x_scroll_bar_create, XTread_socket): Replace #if USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS. (x_set_window_size): Call SET_FRAME_GARBAGED. Clear window if internal border width has changed. --- src/macterm.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/macterm.c b/src/macterm.c index 25c41ce9557..e0978066b84 100644 --- a/src/macterm.c +++ b/src/macterm.c @@ -4963,7 +4963,7 @@ x_scroll_bar_create (w, top, left, width, height, disp_top, disp_height) #endif #if TARGET_API_MAC_CARBON ch = NewControl (FRAME_MAC_WINDOW (f), &r, "\p", -#if USE_TOOLKIT_SCROLL_BARS +#ifdef USE_TOOLKIT_SCROLL_BARS false, #else width < disp_height, @@ -6223,6 +6223,16 @@ x_set_window_size (f, change_gravity, cols, rows) #endif mac_handle_size_change (f, pixelwidth, pixelheight); + if (f->output_data.mac->internal_border_width + != FRAME_INTERNAL_BORDER_WIDTH (f)) + { + mac_clear_window (f); + f->output_data.mac->internal_border_width + = FRAME_INTERNAL_BORDER_WIDTH (f); + } + + SET_FRAME_GARBAGED (f); + UNBLOCK_INPUT; } @@ -11045,7 +11055,7 @@ XTread_socket (sd, expected, hold_quit) else { /* A window has been deactivated */ -#if USE_TOOLKIT_SCROLL_BARS +#ifdef USE_TOOLKIT_SCROLL_BARS if (dpyinfo->grabbed && tracked_scroll_bar) { struct input_event event; -- 2.39.2