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.
This commit is contained in:
parent
40be7b467f
commit
db9993875e
@ -2922,6 +2922,7 @@ map(struct desktop_shell *shell, struct weston_surface *surface,
|
||||
break;
|
||||
case SHELL_SURFACE_POPUP:
|
||||
shell_map_popup(shsurf);
|
||||
break;
|
||||
case SHELL_SURFACE_NONE:
|
||||
weston_surface_set_position(surface,
|
||||
surface->geometry.x + sx,
|
||||
|
Loading…
Reference in New Issue
Block a user