summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index b2e7dde3a..86d2eb6cf 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -203,8 +203,11 @@ function rcube_webmail()
this.set_page_buttons();
- // focus this window
- window.focus();
+ // focus main window
+ if (this.env.framed && window.parent)
+ window.parent.focus();
+ else
+ window.focus();
// init message compose form
if (this.env.action=='compose')