mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-30 00:15:58 +01:00
rootston: use wl_list_empty instead of wl_list_length > 0
This commit is contained in:
parent
709d7dd722
commit
60a83e99f4
1 changed files with 1 additions and 1 deletions
|
@ -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->model, wlr_output->serial, wlr_output->phys_width,
|
||||||
wlr_output->phys_height);
|
wlr_output->phys_height);
|
||||||
|
|
||||||
if (wl_list_length(&wlr_output->modes) > 0) {
|
if (!wl_list_empty(&wlr_output->modes)) {
|
||||||
struct wlr_output_mode *mode =
|
struct wlr_output_mode *mode =
|
||||||
wl_container_of((&wlr_output->modes)->prev, mode, link);
|
wl_container_of((&wlr_output->modes)->prev, mode, link);
|
||||||
wlr_output_set_mode(wlr_output, mode);
|
wlr_output_set_mode(wlr_output, mode);
|
||||||
|
|
Loading…
Reference in a new issue