shell: Remove confusing case fall-through
authorRob Bradford <rob@linux.intel.com>
Thu, 6 Dec 2012 12:07:48 +0000 (12:07 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 12 Dec 2012 04:48:01 +0000 (23:48 -0500)
commitba84e7e1669b94d202dc20bdf4a7a88377790b66
tree564c5e996d937086b3e996fd8c63ca3534e58744
parent0b7b8982891a06e4a6008f699c07b732e456de8c
shell: Remove confusing case fall-through

This avoids calling weston_surface_set_position twice on the same surface. The
second call has no effect in many cases because sx and sy
are usually zero on this path.

This change now means that any sx/sy values passed into ::attach will be
ignored on the first attach for popup surfaces. This similar to the behaviour
for other surface types.
src/shell.c