aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv <[email protected]>2004-10-18 16:17:15 +0000
committerJan Djärv <[email protected]>2004-10-18 16:17:15 +0000
commit8433889043de2a6b8c2812d3a656991c2dd4e50a (patch)
treeefd5d0a170d9af3ea210c6c0e576000609c3ddc0 /src
parent6e1b0d8c4f8db76307825736094ec8f57dcd2e6e (diff)
* gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
gdk_window_clear and move gdk_window_process_all_updates after clear so events are sent to the X server in correct order.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/gtkutil.c9
2 files changed, 10 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ab4c4cd67f..7b22f04300 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-18 Jan Dj,Ad(Brv <[email protected]>
+
+ * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
+ gdk_window_clear and move gdk_window_process_all_updates after
+ clear so events are sent to the X server in correct order.
+
2004-10-18 Kenichi Handa <[email protected]>
* fontset.c (fs_load_font): Use fast_string_match_ignore_case for
diff --git a/src/gtkutil.c b/src/gtkutil.c
index fabdae74dc..4d166a4d01 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -2888,9 +2888,6 @@ xg_update_scrollbar_pos (f, scrollbar_id, top, left, width, height,
gtk_fixed_move (GTK_FIXED (wfixed), wscroll, left, top);
gtk_widget_set_size_request (wscroll, width, height);
- /* Must force out update so changed scroll bars gets redrawn. */
- gdk_window_process_all_updates ();
-
/* Scroll bars in GTK has a fixed width, so if we say width 16, it
will only be its fixed width (14 is default) anyway, the rest is
blank. We are drawing the mode line across scroll bars when
@@ -2917,9 +2914,11 @@ xg_update_scrollbar_pos (f, scrollbar_id, top, left, width, height,
scroll bar so that there is some space (typically 1 pixel) between
the scroll bar and the edge of the window and between the scroll
bar and the fringe. */
+ gdk_window_clear (wscroll->window);
- XClearWindow (FRAME_X_DISPLAY (f), GTK_WIDGET_TO_X_WIN (wscroll));
-
+ /* Must force out update so changed scroll bars gets redrawn. */
+ gdk_window_process_all_updates ();
+
SET_FRAME_GARBAGED (f);
cancel_mouse_face (f);
}