you need to run starcraft 2 in "windowed fullscreen mode" and under controls you select "bind mouse -> always"
this will a) run SC2 in a windows but without borders, so you can't actually tell that it is running in a window (looks the same as fullscreen) and
b) prevent your mouse to leave...