mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
backend/{x11,headless}: use default if supplied refresh is invalid
This commit is contained in:
parent
ce09537a9a
commit
03563b61a8
2 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ static bool output_set_custom_mode(struct wlr_output *wlr_output, int32_t width,
|
|||
(struct wlr_headless_output *)wlr_output;
|
||||
struct wlr_headless_backend *backend = output->backend;
|
||||
|
||||
if (refresh == 0) {
|
||||
if (refresh <= 0) {
|
||||
refresh = HEADLESS_DEFAULT_REFRESH;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue