clutter-stage-x11: Don't ensure the viewport when the window moves
authorNeil Roberts <neil@linux.intel.com>
Tue, 25 Jan 2011 15:53:35 +0000 (15:53 +0000)
committerNeil Roberts <neil@linux.intel.com>
Fri, 28 Jan 2011 16:49:53 +0000 (16:49 +0000)
commite7519a149beb78b92ab8e5b2d315fbab3102dbc2
treeed935f4bf69013bde5de8df94708117adf02bd2f
parentdc6f6d6445a1fb9090ce63947218578b969c8718
clutter-stage-x11: Don't ensure the viewport when the window moves

When we receive a ConfigureNotify event that doesn't affect the size
of the window (only the position) then we were still calling
clutter_stage_ensure_viewport which ends up queueing a full stage
redraw. This patch makes it so that it only ensures the viewport when
the size changes as it already did for avoiding queueing a relayout.

It now also avoids setting the clipped redraws cool off period when
the window only moves under the assumption that it's only necessary
for size changes.
clutter/x11/clutter-stage-x11.c