From 98599f74d03c2dd4b6ac90d68266c508c5e0342e Mon Sep 17 00:00:00 2001
From: =?utf8?q?Jan=20Dj=C3=A4rv?= <jan.h.d@swipnet.se>
Date: Sat, 13 Feb 2010 13:54:50 +0100
Subject: [PATCH] xterm.c (x_clear_frame_area): Cal gtk_widget_queue_draw if
 USE_GTK, bug #5571.

---
 src/ChangeLog | 5 +++++
 src/xterm.c   | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/src/ChangeLog b/src/ChangeLog
index 347a6f886b4..a48194a90aa 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-13  Jan Djärv  <jan.h.d@swipnet.se>
+
+	* xterm.c (x_clear_frame_area): Cal gtk_widget_queue_draw if USE_GTK,
+	bug #5571.
+
 2010-02-10  Jan Djärv  <jan.h.d@swipnet.se>
 
 	* xsmfns.c (x_session_initialize): Move initialization of ice_fd and
diff --git a/src/xterm.c b/src/xterm.c
index 1add3c415e7..9ed98deb7b5 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7446,6 +7446,11 @@ x_clear_frame_area (f, x, y, width, height)
 {
   x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
 		x, y, width, height, False);
+#ifdef USE_GTK
+  /* Must queue a redraw, because scroll bars might have been cleared.  */
+  if (FRAME_GTK_WIDGET (f))
+    gtk_widget_queue_draw (FRAME_GTK_WIDGET (f));
+#endif
 }
 
 
-- 
2.39.5