elm/win: Put framespace set code in a common place.
elm/win: Put framespace set code in a common place.

A little refactory that hopefully will prevent future mistakes when
changing this code.

FlorentRevest/Elementary,rvandegrift/elementary,tasn/elementary,tasn/elementary,rvandegrift/elementary,rvandegrift/elementary,FlorentRevest/Elementary,tasn/elementary,tasn/elementary,tasn/elementary,rvandegrift/elementary,FlorentRevest/Elementary,FlorentRevest/Elementary