diff options
| author | Heghedus Razvan <heghedus.razvan@gmail.com> | 2017-10-15 13:32:37 +0300 | 
|---|---|---|
| committer | Heghedus Razvan <heghedus.razvan@gmail.com> | 2017-10-20 11:46:09 +0300 | 
| commit | 1d716241afbc721c3ae65d4a2bb0e25866fe081c (patch) | |
| tree | 890ed910ec48af6f0725f45a66b981469ac517be /rootston | |
| parent | c03e7746367194b859125624b059c1725eb7ae30 (diff) | |
| download | wlroots-1d716241afbc721c3ae65d4a2bb0e25866fe081c.tar.xz | |
Replace list_t with wl_list in wlr_output
Signed-off-by: Heghedus Razvan <heghedus.razvan@gmail.com>
Diffstat (limited to 'rootston')
| -rw-r--r-- | rootston/output.c | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/rootston/output.c b/rootston/output.c index 39a90fe3..95e052fb 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -166,9 +166,11 @@ void output_add_notify(struct wl_listener *listener, void *data) {  	wlr_log(L_DEBUG, "%s %s %"PRId32"mm x %"PRId32"mm",  			wlr_output->make, wlr_output->model,  			wlr_output->phys_width, wlr_output->phys_height); -	if (wlr_output->modes->length > 0) { -		wlr_output_set_mode(wlr_output, wlr_output->modes->items[0]); -	} +        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); +        }  	struct roots_output *output = calloc(1, sizeof(struct roots_output));  	clock_gettime(CLOCK_MONOTONIC, &output->last_frame);  | 
