www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 9ac7b450103b39c438a508c5c52b675cb37afa16
parent 46e1fd0600fa7320685210da33e3124b33a31f60
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue,  2 Aug 2011 01:21:34 +0000

Don't use dialog window type for integration windows on Linux


Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -1070,9 +1070,15 @@ Zotero.Integration.Session.prototype.setData = function(data) { */ Zotero.Integration.Session.prototype._displayDialog = function(url, options, io) { if(this.doc) this.doc.cleanup(); + + var allOptions = 'chrome,centerscreen'; + // without this, Firefox gets raised with our windows under Compiz + if(Zotero.isLinux) allOptions += ',dialog=no'; + if(options) allOptions += ','+options; + var window = Components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getService(Components.interfaces.nsIWindowWatcher) - .openWindow(null, url, '', 'chrome,centerscreen'+(options ? ','+options : ""), (io ? io : null)); + .openWindow(null, url, '', allOptions, (io ? io : null)); Zotero.Integration.activate(window); while(!window.closed) { Zotero.mainThread.processNextEvent(true);