xserver/hw/xwayland
Marek Chalupa 21f384b7b8 xwayland: do not add output into output_list multiple times
output.done event can be sent even on some property change, not only
when announcing the output. Therefore we must check if we already have it
otherwise we may corrupt the list by adding it multiple times.

This fixes bug when xwayland looped indefinitely in output.done handler
and that can be reproduced following these steps (under X without
multi-monitor setup):
 1) run weston --output-count=2
 2) run xterm, move it so that half is on one output
    and half on the other
 3) close second output, try run weston-terminal

weston sends updated outputs which trigger this bug.

v2. factor out common code into function
    move expecting_events into right branch

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
2015-09-25 15:24:22 +02:00
..
.gitignore Xwayland DDX 2014-04-03 15:19:22 -07:00
Makefile.am xwayland: Add dependency on glamor libs 2015-03-24 12:01:38 -07:00
drm.xml xwayland: Add glamor and DRI3 support 2014-06-24 15:09:55 -07:00
xwayland-cursor.c xwayland: call through to miPointerWarpCursor on warp_cursor 2015-09-18 14:55:00 +02:00
xwayland-cvt.c Xwayland DDX 2014-04-03 15:19:22 -07:00
xwayland-glamor.c glamor: add support for allocating linear buffers (v2) 2015-06-30 12:17:55 +10:00
xwayland-input.c xwayland: Activate and enable device on first capability reporting 2015-09-21 08:48:47 +02:00
xwayland-output.c xwayland: do not add output into output_list multiple times 2015-09-25 15:24:22 +02:00
xwayland-shm.c xwayland: keep temp files out of the client mask 2015-06-25 14:11:35 +02:00
xwayland.c xwayland: Destroy xwl_output when wl_output gets removed 2015-09-25 15:22:18 +02:00
xwayland.h xwayland: Destroy xwl_output when wl_output gets removed 2015-09-25 15:22:18 +02:00