# HG changeset patch # User Jan Dj¸«£rv # Date 1098116235 0 # Node ID da44dbb5ee891878fc73e9318390ace5236f1efb # Parent 3052227ab881e5fda4ff876ad9656d589128f1b2 * 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. diff -r 3052227ab881 -r da44dbb5ee89 src/ChangeLog --- a/src/ChangeLog Mon Oct 18 12:28:18 2004 +0000 +++ b/src/ChangeLog Mon Oct 18 16:17:15 2004 +0000 @@ -1,3 +1,9 @@ +2004-10-18 Jan Dj,Ad(Brv + + * 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 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for diff -r 3052227ab881 -r da44dbb5ee89 src/gtkutil.c --- a/src/gtkutil.c Mon Oct 18 12:28:18 2004 +0000 +++ b/src/gtkutil.c Mon Oct 18 16:17:15 2004 +0000 @@ -2888,9 +2888,6 @@ 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 @@ 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. */ - - XClearWindow (FRAME_X_DISPLAY (f), GTK_WIDGET_TO_X_WIN (wscroll)); - + gdk_window_clear (wscroll->window); + + /* Must force out update so changed scroll bars gets redrawn. */ + gdk_window_process_all_updates (); + SET_FRAME_GARBAGED (f); cancel_mouse_face (f); }