[x11] Don't set actor size on ConfigureNotify
authorChris Lord <chris@linux.intel.com>
Sat, 6 Feb 2010 15:47:22 +0000 (16:47 +0100)
committerChris Lord <chris@linux.intel.com>
Sat, 6 Feb 2010 15:47:22 +0000 (16:47 +0100)
commit29cc027f069c9ad900b9044cd40075c2d17be736
treedf786f1e7eeed8153bfd5d61500289d1a608a172
parentcea9de7f047cb8c2b1d54f41ca1d77c3aff882e0
[x11] Don't set actor size on ConfigureNotify

Calling clutter_actor_set_size in response to ConfigureNotify makes
setting the size of the stage racy - the most common result of which
seems to be that you can't set the stage dimensions to anything less
than 640x480.

Instead, add a first_allocation bit to the private structure of the X11
stage and force the first resize (necessary or the default stage will be
a 1x1 window).
clutter/x11/clutter-event-x11.c
clutter/x11/clutter-stage-x11.c
clutter/x11/clutter-stage-x11.h