diff --git a/config.def.h b/config.def.h index 86f1338..be4c7bd 100644 --- a/config.def.h +++ b/config.def.h @@ -43,13 +43,12 @@ static const Layout layouts[] = { * WARNING: negative values other than (-1, -1) cause problems with Xwayland clients * https://gitlab.freedesktop.org/xorg/xserver/-/issues/899 */ -/* NOTE: ALWAYS add a fallback rule, even if you are completely sure it won't be used */ static const MonitorRule monrules[] = { /* name mfact nmaster scale layout rotate/reflect x y */ /* example of a HiDPI laptop monitor: { "eDP-1", 0.5f, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 }, */ - /* defaults */ + /* default monitor rule */ { NULL, 0.55f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 }, }; diff --git a/dwl.c b/dwl.c index 46966c0..0e7c6e1 100644 --- a/dwl.c +++ b/dwl.c @@ -465,7 +465,7 @@ applyrules(Client *c) for (r = rules; r < END(rules); r++) { if ((!r->title || strstr(title, r->title)) && (!r->id || strstr(appid, r->id))) { - if (r->isfloating < -1) + if (r->isfloating > -1) c->isfloating = r->isfloating; newtags |= r->tags; i = 0;