Commit 0720ea36 authored by Derek Foreman's avatar Derek Foreman Committed by Bryce Harrington

compositor-drm: Simplify logic in setup_output_seat_constraint

Use early return for a slight simplification.
Reviewed-by: Jonas Ådahl's avatarJonas Ådahl <>
Signed-off-by: default avatarDerek Foreman <>
parent 2e6485c8
......@@ -2078,10 +2078,12 @@ setup_output_seat_constraint(struct drm_backend *b,
struct udev_seat *seat;
seat = udev_seat_get_named(&b->input, s);
if (seat)
seat->base.output = output;
if (!seat)
seat->base.output = output;
if (seat && seat->base.pointer)
if (seat->base.pointer)
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