i3bar: Realign tray clients on map/unmap notify
i3bar: Realign tray clients on map/unmap notify

UnmapNotify events are interpreted by i3bar as an action taken by an
application to hide its tray window. Likewise, MapNotify events are
interpreted as an action taken by by an application to show its tray
window.

The actual cause of these events may be the application itself, or the
result of some action taken by i3bar itself at the request of the
application in the course of the XEmbed protocol.

We respond by adjusting the size of the tray window and realigning any
tray clients that remain. This will make room for the mapping window or
close the gap left by the unmapping window when the bar is redrawn.

fixes #1110

sideffect0/i3wm,isharp/i3,mh21/i3,Airblader/i3-original,acrisci/i3,sa1/i3,drbig/i3,i3/i3,tcreech/i3,simonnagl/i3,Kaligule/i3,strake/i3,Matmusia/i3,cornerman/i3,strake/i3,shdown/i3,Azkae/i3,yin/i3,yin/i3,netzverweigerer/i3,sa1/i3,jubalh/i3,cornerman/i3,Matmusia/i3,Airblader/i3,isharp/i3,saksham0808/i3,MForster/i3,strake/i3,pronobis/i3,acrisci/i3,smrt28/i3,shdown/i3,Matmusia/i3,pronobis/i3,EvilPudding/i3,simonnagl/i3,acrisci/i3,EvilPudding/i3,mariusmuja/i3wm,Matmusia/i3,drbig/i3,jubalh/i3,avrelaun/i3,dg-ratiodata/i3,Chr1stoph/i3,saksham0808/i3,pronobis/i3,ccryx/i3,FauxFaux/i3,acrisci/i3,renlinx007/i3wm,smrt28/i3,Airblader/i3-original,Zopieux/i3,EvilPudding/i3,Kaligule/i3,mh21/i3,FauxFaux/i3,Airblader/i3,Zopieux/i3,ccryx/i3,saksham0808/i3,renlinx007/i3wm,gnomus/i3-wm-gap,pronobis/i3,mh21/i3,FauxFaux/i3,Azkae/i3,i3/i3,drbig/i3,simonnagl/i3,stapelberg/i3,Azkae/i3,tcreech/i3,simonnagl/i3,tcreech/i3,strake/i3,mariusmuja/i3wm,mh21/i3,smrt28/i3,acrisci/i3,ccryx/i3,MForster/i3,ccryx/i3,renlinx007/i3wm,dg-ratiodata/i3,pablospe/i3,gnomus/i3-wm-gap,shdown/i3,sideffect0/i3wm,yin/i3,EvilPudding/i3,mariusmuja/i3wm,Zopieux/i3,Airblader/i3-original,netzverweigerer/i3,Kaligule/i3,smrt28/i3,stapelberg/i3,strake/i3,isharp/i3,mariusmuja/i3wm,jubalh/i3,Kaligule/i3,sa1/i3,avrelaun/i3,Azkae/i3,saksham0808/i3,pablospe/i3,gnomus/i3-wm-gap,Zopieux/i3,dg-ratiodata/i3,isharp/i3,avrelaun/i3,stapelberg/i3,pablospe/i3,Airblader/i3,avrelaun/i3,i3/i3,FauxFaux/i3,stapelberg/i3,jubalh/i3,cornerman/i3,Airblader/i3,netzverweigerer/i3,Airblader/i3-original,MForster/i3,drbig/i3,sideffect0/i3wm,yin/i3,Chr1stoph/i3,gnomus/i3-wm-gap,Chr1stoph/i3,dg-ratiodata/i3,tcreech/i3,i3/i3,MForster/i3,pablospe/i3,sa1/i3,renlinx007/i3wm,shdown/i3,cornerman/i3,netzverweigerer/i3,sideffect0/i3wm,Chr1stoph/i3,Airblader/i3-original