diff options
| -rw-r--r-- | src/gtkutil.c | 3 | ||||
| -rw-r--r-- | src/xterm.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c index 5d28b0221af..a4b4331c039 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -3824,8 +3824,7 @@ xg_update_scrollbar_pos (struct frame *f, | |||
| 3824 | above. */ | 3824 | above. */ |
| 3825 | oldw += (scale - 1) * oldw; | 3825 | oldw += (scale - 1) * oldw; |
| 3826 | oldx -= (scale - 1) * oldw; | 3826 | oldx -= (scale - 1) * oldw; |
| 3827 | x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), | 3827 | x_clear_area (f, oldx, oldy, oldw, oldh); |
| 3828 | oldx, oldy, oldw, oldh); | ||
| 3829 | } | 3828 | } |
| 3830 | 3829 | ||
| 3831 | /* GTK does not redraw until the main loop is entered again, but | 3830 | /* GTK does not redraw until the main loop is entered again, but |
diff --git a/src/xterm.c b/src/xterm.c index 8f595c87214..4590e34fe8b 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -8326,7 +8326,9 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 8326 | { | 8326 | { |
| 8327 | xg_frame_resized (f, event->xconfigure.width, | 8327 | xg_frame_resized (f, event->xconfigure.width, |
| 8328 | event->xconfigure.height); | 8328 | event->xconfigure.height); |
| 8329 | #ifdef USE_CAIRO | ||
| 8329 | x_cr_destroy_surface (f); | 8330 | x_cr_destroy_surface (f); |
| 8331 | #endif | ||
| 8330 | f = 0; | 8332 | f = 0; |
| 8331 | } | 8333 | } |
| 8332 | #endif | 8334 | #endif |