Re: [dwm] auto-raise window patch?

From: Szabolcs Nagy <nszabolcs_AT_gmail.com>
Date: Thu, 5 Jul 2007 05:12:32 +0200

On 7/5/07, Julian Romero <dwm_AT_mad.mw> wrote:
> Hi,
> these days I use the floating mode a lot more than tiling mode, and I
> miss the auto-raise feature (yes, using the mouse to select the window
> without MOD-clicking it)
>
> I played a little with focus and other code I've found in the list
> archive, but no luck.
>
> Does anyone have such a patch? Some hint to help me write it myself?

eg you can add restack() in client.c/focus();
...
if(c) {
    detachstack(c);
    attachstack(c);
    grabbuttons(c, True);
    restack(); // raise focused window
}
...

or you may want to add:
if(lt->arrange == floating)
    restack();
    ...
Received on Thu Jul 05 2007 - 05:12:34 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:45:44 UTC