diff options
author | Simon Ser <contact@emersion.fr> | 2023-06-26 20:07:36 +0200 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-06-27 16:26:30 +0000 |
commit | 2aabaf88096864f4a9c534f94c909968d0b62b19 (patch) | |
tree | cf42282606d2ac4a2595cde359936147fd1a3df8 /examples/pointer.c | |
parent | 9e6431dc3bd121b1994961c68374b4e17db29444 (diff) |
examples: enable new outputs
Diffstat (limited to 'examples/pointer.c')
-rw-r--r-- | examples/pointer.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/pointer.c b/examples/pointer.c index 127b77f3..f6ae30b4 100644 --- a/examples/pointer.c +++ b/examples/pointer.c @@ -279,14 +279,15 @@ static void new_output_notify(struct wl_listener *listener, void *data) { wlr_xcursor_manager_set_cursor_image(sample->xcursor_manager, "default", sample->cursor); + struct wlr_output_state state; + wlr_output_state_init(&state); + wlr_output_state_set_enabled(&state, true); struct wlr_output_mode *mode = wlr_output_preferred_mode(output); if (mode != NULL) { - struct wlr_output_state state; - wlr_output_state_init(&state); wlr_output_state_set_mode(&state, mode); - wlr_output_commit_state(output, &state); - wlr_output_state_finish(&state); } + wlr_output_commit_state(output, &state); + wlr_output_state_finish(&state); } |