diff options
Diffstat (limited to 'examples/tablet.c')
-rw-r--r-- | examples/tablet.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/tablet.c b/examples/tablet.c index 85970685..ee6712b1 100644 --- a/examples/tablet.c +++ b/examples/tablet.c @@ -285,10 +285,11 @@ static void new_output_notify(struct wl_listener *listener, void *data) { struct wlr_output_mode *mode = wlr_output_preferred_mode(output); if (mode != NULL) { - wlr_output_set_mode(output, mode); + struct wlr_output_state state = {0}; + wlr_output_state_set_mode(&state, mode); + wlr_output_commit_state(output, &state); + wlr_output_state_finish(&state); } - - wlr_output_commit(output); } static void keyboard_key_notify(struct wl_listener *listener, void *data) { |