From 0b4da40af939c80656cb90ededae377480c516b6 Mon Sep 17 00:00:00 2001 From: A Frederick Christensen Date: Fri, 1 Apr 2022 22:41:33 -0500 Subject: [PATCH] Remove unused 'x' and 'y' fields from MonitorRule struct --- config.def.h | 6 +++--- dwl.c | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/config.def.h b/config.def.h index 00f6a85..49a36a1 100644 --- a/config.def.h +++ b/config.def.h @@ -29,12 +29,12 @@ 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 */ + /* name mfact nmaster scale layout rotate/reflect */ /* example of a HiDPI laptop monitor: - { "eDP-1", 0.5, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0 }, + { "eDP-1", 0.5, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL }, */ /* defaults */ - { NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0 }, + { NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL }, }; /* keyboard */ diff --git a/dwl.c b/dwl.c index ac62120..24d015f 100644 --- a/dwl.c +++ b/dwl.c @@ -191,8 +191,6 @@ typedef struct { float scale; const Layout *lt; enum wl_output_transform rr; - int x; - int y; } MonitorRule; typedef struct {