move xkb_current_group check into own function
move xkb_current_group check into own function

This is a no-op refactoring.

i3/i3,shdown/i3,cornerman/i3,Airblader/i3-original,stapelberg/i3,shdown/i3,i3/i3,Airblader/i3,strake/i3,avrelaun/i3,acrisci/i3,stapelberg/i3,avrelaun/i3,cornerman/i3,strake/i3,Airblader/i3-original,Airblader/i3-original,EvilPudding/i3,EvilPudding/i3,strake/i3,acrisci/i3,Airblader/i3,Airblader/i3-original,acrisci/i3,shdown/i3,cornerman/i3,cornerman/i3,acrisci/i3,Airblader/i3,stapelberg/i3,shdown/i3,avrelaun/i3,avrelaun/i3,i3/i3,strake/i3,i3/i3,EvilPudding/i3,stapelberg/i3,strake/i3,Airblader/i3,EvilPudding/i3,Airblader/i3-original,acrisci/i3