mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-26 17:54:14 +00:00
remove monitor rule note for more indicating comment
This commit is contained in:
parent
8a414f7cae
commit
5e22c70943
@ -43,13 +43,12 @@ static const Layout layouts[] = {
|
|||||||
* WARNING: negative values other than (-1, -1) cause problems with Xwayland clients
|
* WARNING: negative values other than (-1, -1) cause problems with Xwayland clients
|
||||||
* https://gitlab.freedesktop.org/xorg/xserver/-/issues/899
|
* 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[] = {
|
static const MonitorRule monrules[] = {
|
||||||
/* name mfact nmaster scale layout rotate/reflect x y */
|
/* name mfact nmaster scale layout rotate/reflect x y */
|
||||||
/* example of a HiDPI laptop monitor:
|
/* example of a HiDPI laptop monitor:
|
||||||
{ "eDP-1", 0.5f, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
|
{ "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 },
|
{ NULL, 0.55f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
2
dwl.c
2
dwl.c
@ -465,7 +465,7 @@ applyrules(Client *c)
|
|||||||
for (r = rules; r < END(rules); r++) {
|
for (r = rules; r < END(rules); r++) {
|
||||||
if ((!r->title || strstr(title, r->title))
|
if ((!r->title || strstr(title, r->title))
|
||||||
&& (!r->id || strstr(appid, r->id))) {
|
&& (!r->id || strstr(appid, r->id))) {
|
||||||
if (r->isfloating < -1)
|
if (r->isfloating > -1)
|
||||||
c->isfloating = r->isfloating;
|
c->isfloating = r->isfloating;
|
||||||
newtags |= r->tags;
|
newtags |= r->tags;
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user