gtk: Don't call gdk_window_process_updates() when scrolling

This can cause lagging when scrolling as it causes us to repaint
on every scroll event. This wasn't historically a great problem,
but with smooth scrolling we get a lot more events, so this
now creates visible lagging on slower machines.
This commit is contained in:
Benjamin Otte
2012-04-05 15:48:51 +02:00
committed by Alexander Larsson
parent d55961adf9
commit 917ca6a802
7 changed files with 1 additions and 97 deletions

View File

@ -1123,7 +1123,5 @@ gtk_layout_adjustment_changed (GtkAdjustment *adjustment,
gdk_window_move (priv->bin_window,
- gtk_adjustment_get_value (priv->hadjustment),
- gtk_adjustment_get_value (priv->vadjustment));
gdk_window_process_updates (priv->bin_window, TRUE);
}
}