Skip to content
Commit d7a63fdb authored by Jonas Ådahl's avatar Jonas Ådahl Committed by Kristian Høgsberg
Browse files

client: Don't cancel a roundtrip when any event is received



Since wl_display_dispatch() returns the number of processed events or -1
on error, only cancel the roundtrip if an -1 is returned.

This also fixes a potential memory corruption bug happening when
wl_display_roundtrip() does an early return and the callback later
writes to the then out of scope stack allocated `done' parameter.

Introduced by 33b7637b.

Signed-off-by: default avatarJonas Ådahl <jadahl@gmail.com>
parent 5df752ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment