mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-26 11:39:47 +01:00
Merge pull request #842 from emersion/custom-mode-invalid-refresh
backend/{x11,headless}: use default if supplied refresh is invalid
This commit is contained in:
commit
87eb10c849
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ static void parse_xcb_setup(struct wlr_output *output, xcb_connection_t *xcb_con
|
|||
static void output_set_refresh(struct wlr_output *wlr_output, int32_t refresh) {
|
||||
struct wlr_x11_output *output = (struct wlr_x11_output *)wlr_output;
|
||||
|
||||
if (refresh == 0) {
|
||||
if (refresh <= 0) {
|
||||
refresh = X11_DEFAULT_REFRESH;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue