window: throttle resizing to the main surface
authorPekka Paalanen <ppaalanen@gmail.com>
Thu, 25 Apr 2013 10:57:52 +0000 (13:57 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 10 May 2013 18:35:54 +0000 (14:35 -0400)
commiteebff54c03ad1f93156e05070fb54e9c9bf06635
tree72eb258a7a5f8e033d1dbd677a5d08fcfa190f34
parente9297f8e7ee09fa39b1d4293fad6e97705ccff21
window: throttle resizing to the main surface

In case a toytoolkit application manages to schedule resizes constantly,
throttle them to the main surface display.

When resizing, all surfaces are updated synchronously, so it also makes
sense to synchronize on the main surface's frame callback particularly.
Rendering any faster will not make sense.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/window.c