~ruther/dwl

aea3f423f5acb7facb1e0b3b3c88318ffacfcc4f — Rutherther 11 months ago 84dd2bb + 59b1f81
Merge branch 'v0.6-a/patched-base' into v0.6-a/patched-keycodes
2 files changed, 20 insertions(+), 0 deletions(-)

M config.def.h
M dwl.c
M config.def.h => config.def.h +1 -0
@@ 157,6 157,7 @@ static const Key keys[] = {
	{ MODKEY,                    Key_period,     focusmon,       {.i = WLR_DIRECTION_RIGHT} },
	{ MODKEY|WLR_MODIFIER_SHIFT, Key_comma,      tagmon,         {.i = WLR_DIRECTION_LEFT} },
	{ MODKEY|WLR_MODIFIER_SHIFT, Key_period,     tagmon,         {.i = WLR_DIRECTION_RIGHT} },
	{ MODKEY,                    Key_period,     focusnthclient, {0} },
	TAGKEYS(                     Key_1,                          0),
	TAGKEYS(                     Key_2,                          1),
	TAGKEYS(                     Key_3,                          2),

M dwl.c => dwl.c +19 -0
@@ 323,6 323,7 @@ static void focusclient(Client *c, int lift);
static void focusmon(const Arg *arg);
static void focusnthmon(const Arg *arg);
static void focusstack(const Arg *arg);
static void focusnthclient(const Arg *arg);
static Client *focustop(Monitor *m);
static void fullscreennotify(struct wl_listener *listener, void *data);
static size_t getunusedtag(void);


@@ 568,6 569,8 @@ applyrules(Client *c)
			newtags = p->tags;
		}
	}
	c->geom.x = (mon->w.width - c->geom.width) / 2 + mon->m.x;
	c->geom.y = (mon->w.height - c->geom.height) / 2 + mon->m.y;
	setmon(c, mon, newtags);
}



@@ 3149,6 3152,22 @@ tagnthmon(const Arg *arg)
}

void
focusnthclient(const Arg *arg)
{
	Client *c;
	unsigned int i = arg->ui;

	wl_list_for_each(c, &clients, link) {
		if (i == 0) {
			focusclient(c, 1);
			return;
		}

		i--;
	}
}

void
tile(Monitor *m)
{
	unsigned int mw, my, ty;

Do not follow this link