compositor-x11: Move the x11 event handler to the display loop
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 12 Dec 2014 20:12:28 +0000 (14:12 -0600)
committerBryce Harrington <bryce@osg.samsung.com>
Tue, 27 Jan 2015 21:50:00 +0000 (13:50 -0800)
commit6deb09ef8a72164947cdfa5f2414e292c7672c9c
treed0a818717d76b03c3a41a020e3c7ab322ef3c7e2
parent1875affcc868ae33e8e42539498bee21bed34635
compositor-x11: Move the x11 event handler to the display loop

While it conceptually makes sense to put the x11 event handler
in the compositor "input" loop, the input loop is actually
dispatched in the middle of the frame repaint.  When the
X11 event results in closing the compositor, this can cause
the current output to be destroyed just prior to trying to
process animations on it.

Closes bug: https://bugs.freedesktop.org/show_bug.cgi?id=81314

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
src/compositor-x11.c