diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-07-07 14:45:43 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-07-07 17:31:42 +0200 |
commit | 60a83e99f4dc930d7d4ed5999f49967a72b7df32 (patch) | |
tree | a0d4bd0baf7a374c13fb5d091006dd8a385b7c53 | |
parent | 709d7dd7227f1ff86b440425721b219e63da7a2d (diff) |
rootston: use wl_list_empty instead of wl_list_length > 0
-rw-r--r-- | rootston/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rootston/output.c b/rootston/output.c index fda2fe89..bf671d6b 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -806,7 +806,7 @@ void handle_new_output(struct wl_listener *listener, void *data) { wlr_output->model, wlr_output->serial, wlr_output->phys_width, wlr_output->phys_height); - if (wl_list_length(&wlr_output->modes) > 0) { + if (!wl_list_empty(&wlr_output->modes)) { struct wlr_output_mode *mode = wl_container_of((&wlr_output->modes)->prev, mode, link); wlr_output_set_mode(wlr_output, mode); |