compositor: Always assign an output when updating a surface transform
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Fri, 14 Sep 2012 13:12:04 +0000 (16:12 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 14 Sep 2012 17:43:08 +0000 (13:43 -0400)
commit231ba171c6af2e379c45e4ae997cb56573f87375
treeff5136b8f146122fed61cfd0369045f8c0bdcea6
parent8ea818fb00aa45fb6e9ff83059778502cef82d1b
compositor: Always assign an output when updating a surface transform

Also make all the callers of weston_surface_assign_output() update the
transform instead. This makes sure that when the surface is assigned an
output its bouding box is valid.

This fixes a bug where a newly created surface would have a NULL output
assigned. This would cause weston_surface_schedule_repaint() to not
schedule a repaint, preventing the surface to be shown until something
else caused a repaint.
src/compositor.c
src/shell.c
src/tablet-shell.c
tests/event-test.c
tests/text-test.c