Commit 3326820e authored by Pekka Paalanen's avatar Pekka Paalanen

libweston-desktop/xwayland: clarify 'added' logic

Setting to a constant is much easier to read and grep for than setting to
a computed variable.

There are no functional changes.
Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <>
Reviewed-by: Daniel Stone's avatarDaniel Stone <>
Reviewed-by: Quentin Glidic's avatarQuentin Glidic <>
parent a838b782
......@@ -92,9 +92,11 @@ weston_desktop_xwayland_surface_change_state(struct weston_desktop_xwayland_surf
surface->added = true;
} else if (surface->added) {
surface->added = false;
if (state == XWAYLAND) {
......@@ -106,7 +108,6 @@ weston_desktop_xwayland_surface_change_state(struct weston_desktop_xwayland_surf
surface->state = state;
surface->added = to_add;
if (parent != NULL)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment