commit 39bec9b1a2dba92250cadd3951cb36a66f075159
parent 9575c1d029cb749089704df8cf1e3497940d699b
Author: Simon Kornblith <simon@simonster.com>
Date: Sun, 12 Feb 2012 19:04:04 -0500
Don't break X11
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js
@@ -491,6 +491,7 @@ Zotero.Integration = new function() {
if(!_x11Display) {
Zotero.debug("Integration: Could not open display; not activating");
_x11 = false;
+ return;
}
Zotero.addShutdownListener(function() {
@@ -501,10 +502,12 @@ Zotero.Integration = new function() {
if(!_x11RootWindow) {
Zotero.debug("Integration: Could not get root window; not activating");
_x11 = false;
+ return;
}
}
win.addEventListener("load", function() {
+ var intervalID;
intervalID = win.setInterval(function() {
_X11BringToForeground(win, intervalID);
}, 50);