Skip to content

Commit

Permalink
Update new output handler for wlroots 0.9.0
Browse files Browse the repository at this point in the history
Following breaking changes in wlroots 0.9.0, wlr_output_commit must be
called after wlr_output_set_mode, wlr_output_set_transform and wlr_output_enable.
Additionally, wlr_output_enable is no longer implicitly called by
wlr_output_set_mode.

Fixes #102
  • Loading branch information
tdaniel22 authored and Hjdskes committed Jan 6, 2020
1 parent 8f6ffa1 commit 51e6c76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions output.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ handle_new_output(struct wl_listener *listener, void *data)
/* Place the cursor in the center of the screen. */
wlr_cursor_warp(server->seat->cursor, NULL, wlr_output->width / 2, wlr_output->height / 2);
wlr_output_damage_add_whole(output->damage);

wlr_output_enable(wlr_output, true);
wlr_output_commit(wlr_output);
}

void
Expand Down

0 comments on commit 51e6c76

Please sign in to comment.