Bugfix: don’t change tabbed/stacked cons to splitv/splith layout (Thanks Merovius)
Bugfix: don’t change tabbed/stacked cons to splitv/splith layout (Thanks Merovius)

To automagically do the right thing when rotating monitors with regards
to splith/splitv layout (depending on width/height of the monitor), we
change the orientation of existing workspaces and the first child.

If that first child happens to be a stacked/tabbed con, we cannot change
the layout unconditionally (previously, the orientation was not in the
layout, so we never noticed this problem).

fixes #768

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