Skip to content
Commit 10403a85 authored by Michael Olbrich's avatar Michael Olbrich Committed by Pekka Paalanen
Browse files

libweston: disable a pending idle_repaint_source when the output is removed



Currently the idle_repaint_source is removed when the output is destroyed.
This covers the most common case: When a monitor is unplugged then the
corresponding DRM output is destroyed and not just disabled.

However, outputs can be explicitly disabled by the shell. In this case the
output is not removed and idle_repaint() may be called for a removed
output.

Remove the idle_repaint_source in weston_compositor_remove_output() to fix
this. And reset the variable to ensure that the source can be created
again.

Removing the source in weston_output_release() is now no longer necessary
since it calls weston_compositor_remove_output().

Signed-off-by: default avatarMichael Olbrich <m.olbrich@pengutronix.de>
parent 61d82388
Loading
Loading
Loading
Pipeline #622861 passed with stages
in 2 minutes and 43 seconds
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