Re: [dev] [dwm] - Focus Master Patch Request

From: Szabolcs Nagy <nszabolcs_AT_gmail.com>
Date: Thu, 3 Sep 2009 08:11:06 +0200

On 9/3/09, Nathan Neff <nathan.neff_AT_gmail.com> wrote:
> As a kludge, I can press Mod1+Enter twice to focus the master, but I'd
> like a single keypress
> to focus the master.
well then a quick&dirty solution is

static Key keys[] = {
  ...
  { MODKEY, XK_m, zoom, {0} },
  { MODKEY, XK_m, zoom, {0} },

so mod+m executes zoom twice

> I haven't dug into the code too much, but I found the "focusstack"
> method, and perhaps
> it could be modified to take a "0" (zero) as an argument which would
> put the focus on the master client.

no, that would focus the previous client
you want something like

void
focusmaster(const Arg *arg) {
  focus(nexttiled(selmon->clients));
}
Received on Thu Sep 03 2009 - 06:11:06 UTC

This archive was generated by hypermail 2.2.0 : Thu Sep 03 2009 - 06:24:01 UTC