Re: [dwm] dual-head and floats on all tags (and one feature request)

From: Jeremy Jay <>
Date: Thu, 23 Apr 2009 16:30:36 -0400

This is completely untested, but "should" do what you ask, just add to
config.h and bind it to a key...

focusurgent(const Arg *arg) {
  Client *c;
  for(c = stack; c && !(c->isurgent); c = c->snext);
  if(sel && sel != c) {
    grabbuttons(sel, False);
    XSetWindowBorder(dpy, sel->win, dc.norm[ColBorder]);
  if(c) {

    grabbuttons(c, True);
    XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
    XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
    XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
  sel = c;

On Thu 23 Apr 2009 - 12:32PM, David E. Thiel wrote:
> Hello,
> I'm using hg tip with the push and gaplessgrid patches, with two
> monitors (laptop and LCD). When I put a window on the screen which
> handles floats, then change focus to a tiled window on the main screen
> somewhere, then switch to another tag and back again, the last window
> that had focus on that tag is focused.
> However, if I send the floating window to all tags, the floating window
> takes focus on every tag change, no matter what window was focused last.
> I can't see what's making this happen, but it doesn't seem like the
> right behavior.
> The feature request that I thought might be useful is a function to
> jump to urgent windows. For example, if you have Pidgin on a tag with 9
> windows or so on it and you see it turn urgent when on another tag, a
> keybinding to jump straight to the tag and window which needs attention
> would be handy, rather than switching to the tag and then manually
> flipping through the client list. Thoughts?
> Thanks,
> David
Received on Thu Apr 23 2009 - 20:30:36 UTC

This archive was generated by hypermail 2.2.0 : Thu Apr 23 2009 - 20:36:05 UTC