diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-11 11:04:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-11 11:04:36 -0500 |
commit | 2bee288090d930a09be5f9176a519c1ec02c63de (patch) | |
tree | 05e8baf4a40288189f746e55b15928caa2793b90 /rootston/output.c | |
parent | c9916b998c90ea935c79f4fb93fd10f57e488a50 (diff) | |
parent | 7072ac87fd1f92cfe6e88a075ff0e8ac2901e870 (diff) |
Merge pull request #411 from acrisci/refactor/config-cleanup
Refactor: cleanup config
Diffstat (limited to 'rootston/output.c')
-rw-r--r-- | rootston/output.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rootston/output.c b/rootston/output.c index f192cb48..d853c45f 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -181,7 +181,8 @@ static void output_frame_notify(struct wl_listener *listener, void *data) { output->last_frame = desktop->last_frame = now; } -static void set_mode(struct wlr_output *output, struct output_config *oc) { +static void set_mode(struct wlr_output *output, + struct roots_output_config *oc) { struct wlr_output_mode *mode, *best = NULL; int mhz = (int)(oc->mode.refresh_rate * 1000); wl_list_for_each(mode, &output->modes, link) { @@ -225,7 +226,8 @@ void output_add_notify(struct wl_listener *listener, void *data) { wl_signal_add(&wlr_output->events.frame, &output->frame); wl_list_insert(&desktop->outputs, &output->link); - struct output_config *output_config = config_get_output(config, wlr_output); + struct roots_output_config *output_config = + roots_config_get_output(config, wlr_output); if (output_config) { if (output_config->mode.width) { set_mode(wlr_output, output_config); |