Re: [dwm] 3 patches: very small cleanup; merge focus+focustopvisible; layout.c cleanup

From: Anydot <dfenze_AT_gmail.com>
Date: Tue, 29 May 2007 13:01:46 +0200

On (29/05/07 11:40), Anselm R. Garbe wrote:
> Hi anydot,

Hi arg,

> > -focusmerge:
> > merges function of focus() and focustopvisible() into one function
> > focus(). It has parameter Client *c and this behaviour:
> > - c == NULL: if selscreen then select topvisible window else
> > deselect sel (used in leavenotify, while pointer goes to
> > another screen in multihead setup).
> > - c && isvisible(c): focus that client
> > - else: select topvisible client
> > this makes behaviour of focus(NULL) more intuitive, the function do
> > the best to select the client AND everytime has some client selected
> > - if there is someone visible (and if selscreen, of course :). Also
> > allow some cleanup in layout functions, too;
>
> Applied, though I ask people with a multihead setup to test hg
> tip NOW, that I can release 4.2 soon.

I tested it in Xnest -scrn 2, and the behaviour is same as that before
aplying this patch.

--anydot
Received on Tue May 29 2007 - 13:01:53 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:43:16 UTC