diff --git a/config.def.h b/config.def.h index f3ec4c0..f2c4e99 100644 --- a/config.def.h +++ b/config.def.h @@ -28,9 +28,9 @@ static const Layout layouts[] = { * The order in which monitors are defined determines their position. * Non-configured monitors are always added to the left. */ static const MonitorRule monrules[] = { - /* name mfact nmaster scale layout rotate/reflect x y resx resy rate adaptive custom*/ + /* name mfact nmaster scale layout rotate/reflect x y resx resy rate adaptive*/ /* example of a HiDPI laptop monitor at 120Hz: - { "eDP-1", 0.5, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0, 0, 0, 120.000, 1, 0}, + { "eDP-1", 0.5, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0, 0, 0, 120.000, 1}, */ /* defaults */ { NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0, 0, 0, 0, 0, 0}, diff --git a/dwl.c b/dwl.c index 4965151..70f6f81 100644 --- a/dwl.c +++ b/dwl.c @@ -193,7 +193,6 @@ typedef struct { int resy; int rate; bool adaptive_true; - bool custom_mode; } MonitorRule; typedef struct { @@ -816,13 +815,13 @@ createkeyboard(struct wlr_input_device *device) } void set_mode(struct wlr_output *output, int width, int height, - float refresh_rate, bool custom) { + float refresh_rate) { // Not all floating point integers can be represented exactly // as (int)(1000 * mHz / 1000.f) // round() the result to avoid any error int mhz = (int)round(refresh_rate * 1000); - if (wl_list_empty(&output->modes) || custom) { + if (wl_list_empty(&output->modes)) { wlr_output_set_custom_mode(output, width, height, refresh_rate > 0 ? mhz : 0); return;