mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Merge pull request #1298 from emersion/output-dangling-idle-frame
output: remove idle_frame event source when destroying output
This commit is contained in:
commit
8488ed2997
2 changed files with 12 additions and 5 deletions
|
|
@ -1347,6 +1347,13 @@ static void drm_connector_cleanup(struct wlr_drm_connector *conn) {
|
|||
memset(&conn->output.model, 0, sizeof(conn->output.model));
|
||||
memset(&conn->output.serial, 0, sizeof(conn->output.serial));
|
||||
|
||||
if (conn->output.idle_frame != NULL) {
|
||||
wl_event_source_remove(conn->output.idle_frame);
|
||||
conn->output.idle_frame = NULL;
|
||||
}
|
||||
conn->output.needs_swap = false;
|
||||
conn->output.frame_pending = false;
|
||||
|
||||
conn->pageflip_pending = false;
|
||||
/* Fallthrough */
|
||||
case WLR_DRM_CONN_NEEDS_MODESET:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue