mirror of
https://github.com/NickHu/sway
synced 2024-12-28 22:23:30 +01:00
commit
974d510585
1 changed files with 6 additions and 0 deletions
|
@ -117,6 +117,12 @@ void output_add_notify(struct wl_listener *listener, void *data) {
|
||||||
output->server = server;
|
output->server = server;
|
||||||
output->swayc = new_output(output);
|
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;
|
output->frame.notify = output_frame_notify;
|
||||||
wl_signal_add(&wlr_output->events.frame, &output->frame);
|
wl_signal_add(&wlr_output->events.frame, &output->frame);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue