Are you testing this on Linux? I've seen cases were raise() did not have any effect. Does it help if you turn "desktop effects" off?