Program windows won't come to foreground when selected in Windows 8.1
Are you using Synergy?
Update for Microsoft Windows (KB3031432) seems to be the culprit in combination with Synergy...
http://synergy.askbot.com/question/838/windows-81-window-focus-problem/