Use the focused container to determine the target window_mode when using floating mode_toggle. This fixes mode_toggle in case the workspace is focused and only a floating sticky window is open.
Use the focused container to determine the target window_mode when using floating mode_toggle.
This fixes mode_toggle in case the workspace is focused and only a floating sticky window is open.

fixes #1927

Chr1stoph/i3,cornerman/i3,acrisci/i3,cornerman/i3,Chr1stoph/i3,dg-ratiodata/i3,EvilPudding/i3,EvilPudding/i3,shdown/i3,dg-ratiodata/i3,shdown/i3,stapelberg/i3,i3/i3,i3/i3,Airblader/i3-original,i3/i3,pronobis/i3,strake/i3,Airblader/i3-original,MForster/i3,cornerman/i3,EvilPudding/i3,ccryx/i3,pronobis/i3,Airblader/i3,Airblader/i3-original,avrelaun/i3,Matmusia/i3,ccryx/i3,shdown/i3,Airblader/i3-original,Chr1stoph/i3,stapelberg/i3,Matmusia/i3,strake/i3,EvilPudding/i3,pronobis/i3,dg-ratiodata/i3,avrelaun/i3,acrisci/i3,ccryx/i3,Matmusia/i3,strake/i3,acrisci/i3,Airblader/i3-original,acrisci/i3,MForster/i3,Airblader/i3,acrisci/i3,Matmusia/i3,i3/i3,Airblader/i3,MForster/i3,dg-ratiodata/i3,strake/i3,pronobis/i3,Airblader/i3,cornerman/i3,shdown/i3,stapelberg/i3,avrelaun/i3,MForster/i3,stapelberg/i3,ccryx/i3,avrelaun/i3,Chr1stoph/i3,strake/i3