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>
Fri, 7 Dec 2012 03:34:20 +0000 (22:34 -0500)
commitdb9993875e6397d861c0029a8d2d1027fb27d2f3
tree29cc28ab08fd63f756b9647900c110a668319686
parent40be7b467f0ccbc52a816434863592ab20a82680
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