summaryrefslogtreecommitdiff
path: root/gtk/gtklayout.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-04-05 15:48:51 +0200
committerAlexander Larsson <alexl@redhat.com>2012-04-05 15:48:51 +0200
commit917ca6a802af574232f413fdf904e1633d706b52 (patch)
treef4b5a54edd4beeba37126b870f2addbfd8f33d86 /gtk/gtklayout.c
parentd55961adf9a40522893da93e1ca857689f1e67a8 (diff)
downloadgtk+-917ca6a802af574232f413fdf904e1633d706b52.tar.gz
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.
Diffstat (limited to 'gtk/gtklayout.c')
-rw-r--r--gtk/gtklayout.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c
index 147ea92b53..10528bb2ce 100644
--- a/gtk/gtklayout.c
+++ b/gtk/gtklayout.c
@@ -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);
}
}