Re: [dev] [dwm] [patch] USPosition, USSize

2011-08-08 Thread Petr Sabata
On Mon, Aug 08, 2011 at 11:37:55PM -0400, Kurt H Maier wrote: > On Mon, Aug 8, 2011 at 10:08 PM, Connor Lane Smith wrote: > > Basically these two fields state that the client's geometry has been > > chosen specifically by the user, and the window manager ought to > > respect that. But we don't, we

Re: [dev] [dwm] [patch] USPosition, USSize

2011-08-08 Thread Kurt H Maier
On Mon, Aug 8, 2011 at 10:08 PM, Connor Lane Smith wrote: > Basically these two fields state that the client's geometry has been > chosen specifically by the user, and the window manager ought to > respect that. But we don't, we just tile the window anyway. The > traditional X utilities all set th

[dev] [dwm] [patch] USPosition, USSize

2011-08-08 Thread Connor Lane Smith
Hey, I've recently been looking into dwm's window manager hints support. I've just finished looking through all the ICCCM properties (next up EWMH), and have found only one which dwm ought to support, but doesn't: the WM_NORMAL_HINTS USPosition and USSize fields. Basically these two fields state

Re: [dev] [dwm] [patch] Fix for retarded clients that send unmapnotify events

2011-08-08 Thread garbeam
On 8 August 2011 18:10, Valentin Ochs wrote: > On Mon, Aug 08, 2011 at 04:43:31PM +0100, Connor Lane Smith wrote: >> > if((c = wintoclient(ev->window))) { >> >     if(ev->send_event) >> >         setclientstate(c, WithdrawnState); >> >     else >> >         unmanage(c, False); >> > } >> >> That wa

Re: [dev] [dwm] [patch] Fix for retarded clients that send unmapnotify events

2011-08-08 Thread Valentin Ochs
On Mon, Aug 08, 2011 at 04:43:31PM +0100, Connor Lane Smith wrote: > > if((c = wintoclient(ev->window))) { > > if(ev->send_event) > > setclientstate(c, WithdrawnState); > > else > > unmanage(c, False); > > } > > That way we abide by the standard, even if that means we set t

Re: [dev] [dwm] [patch] Fix for retarded clients that send unmapnotify events

2011-08-08 Thread Connor Lane Smith
Hey, On 8 August 2011 04:58, Valentin Ochs wrote: > Just found http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4 > So apparently the help window wants to go into WithdrawnState, get > ignored by dwm, and draw its own icon or whatever right after being > mapped. Makes sense to me... Reading the I