Focus stealing fix (Issue #283)