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

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

2011-08-07 Thread Valentin Ochs
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...

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

2011-08-07 Thread Valentin Ochs
Mathematica 7 and 8, probably plenty of other versions, and maybe even some other retarded clients, send UnmapNotify events for their help windows right after they get created. dwm then forgets about the window and it's a huge pain in the ass to work with. Don't ask me why, I'm not drunk and stoned