Use SetCapture() to fix the problem with double-clicks on saved sessions