diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-11-28 04:46:22 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-11-28 04:46:22 -0500 |
commit | 6993a76232d97d533f0851ab05b84c6dd8806e6a (patch) | |
tree | 37bf4008403c0825700f75d8db9ecf5bb239b312 | |
parent | 8caabe59c2e6f6174678e6c28be3381a7dabff10 (diff) |
set mode on output
-rw-r--r-- | sway/desktop/output.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 99c74d89..169b044b 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -117,6 +117,12 @@ void output_add_notify(struct wl_listener *listener, void *data) { output->server = server; output->swayc = new_output(output); + if (wl_list_length(&wlr_output->modes) > 0) { + struct wlr_output_mode *mode = NULL; + mode = wl_container_of((&wlr_output->modes)->prev, mode, link); + wlr_output_set_mode(wlr_output, mode); + } + output->frame.notify = output_frame_notify; wl_signal_add(&wlr_output->events.frame, &output->frame); |