aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2007-03-05 08:18:36 +0000
committerYAMAMOTO Mitsuharu2007-03-05 08:18:36 +0000
commit70385fe6309c734b06cce5b823f3a3c5bd16e071 (patch)
tree00de770e557c80be8c4f8f01f1ccb1625762f8c9 /src
parentc6fe628971a484e7303eb7c1dae12f740437003b (diff)
downloademacs-70385fe6309c734b06cce5b823f3a3c5bd16e071.tar.gz
emacs-70385fe6309c734b06cce5b823f3a3c5bd16e071.zip
(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.
Diffstat (limited to 'src')
-rw-r--r--src/macterm.c14
1 files 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)
4963#endif 4963#endif
4964#if TARGET_API_MAC_CARBON 4964#if TARGET_API_MAC_CARBON
4965 ch = NewControl (FRAME_MAC_WINDOW (f), &r, "\p", 4965 ch = NewControl (FRAME_MAC_WINDOW (f), &r, "\p",
4966#if USE_TOOLKIT_SCROLL_BARS 4966#ifdef USE_TOOLKIT_SCROLL_BARS
4967 false, 4967 false,
4968#else 4968#else
4969 width < disp_height, 4969 width < disp_height,
@@ -6223,6 +6223,16 @@ x_set_window_size (f, change_gravity, cols, rows)
6223#endif 6223#endif
6224 mac_handle_size_change (f, pixelwidth, pixelheight); 6224 mac_handle_size_change (f, pixelwidth, pixelheight);
6225 6225
6226 if (f->output_data.mac->internal_border_width
6227 != FRAME_INTERNAL_BORDER_WIDTH (f))
6228 {
6229 mac_clear_window (f);
6230 f->output_data.mac->internal_border_width
6231 = FRAME_INTERNAL_BORDER_WIDTH (f);
6232 }
6233
6234 SET_FRAME_GARBAGED (f);
6235
6226 UNBLOCK_INPUT; 6236 UNBLOCK_INPUT;
6227} 6237}
6228 6238
@@ -11045,7 +11055,7 @@ XTread_socket (sd, expected, hold_quit)
11045 else 11055 else
11046 { 11056 {
11047 /* A window has been deactivated */ 11057 /* A window has been deactivated */
11048#if USE_TOOLKIT_SCROLL_BARS 11058#ifdef USE_TOOLKIT_SCROLL_BARS
11049 if (dpyinfo->grabbed && tracked_scroll_bar) 11059 if (dpyinfo->grabbed && tracked_scroll_bar)
11050 { 11060 {
11051 struct input_event event; 11061 struct input_event event;