summaryrefslogtreecommitdiff
path: root/gdk/gdksurface.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/gdksurface.c')
-rw-r--r--gdk/gdksurface.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index c55a9a8042..ef6464c43a 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -1299,12 +1299,11 @@ gdk_surface_schedule_update (GdkSurface *surface)
g_return_if_fail (surface);
+ surface->pending_phases |= GDK_FRAME_CLOCK_PHASE_PAINT;
+
if (surface->update_freeze_count ||
gdk_surface_is_toplevel_frozen (surface))
- {
- surface->pending_phases |= GDK_FRAME_CLOCK_PHASE_PAINT;
- return;
- }
+ return;
/* If there's no frame clock (a foreign surface), then the invalid
* region will just stick around unless gdk_surface_process_updates()