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:
committed by
Alexander Larsson
parent
d55961adf9
commit
917ca6a802
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user