commit f8f4485c92f2835d4bfad68bd18737ca6dec8fad
Author: darkxst <tim@feathertop.org>
Date:   Fri Jun 8 15:17:58 2012 +1000

    show modal Dialogs on monitor with the mouse pointer

diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js
index 6109b32..d1cfa86 100644
--- a/js/ui/modalDialog.js
+++ b/js/ui/modalDialog.js
@@ -182,6 +182,15 @@ const ModalDialog = new Lang.Class({
     _fadeOpen: function() {
         let monitor = Main.layoutManager.focusMonitor;
 
+	let monitors = Main.layoutManager.monitors;
+        let [x, y, mod] = global.get_pointer();
+        for (let j =0; j < monitors.length; j++){
+            if ( x > monitors[j].x && x < (monitors[j].x + monitors[j].width) && 
+                 y > monitors[j].y && (monitors[j].y + monitors[j].height)){
+                    monitor = monitors[j];
+            }
+        }
+
         this._backgroundBin.set_position(monitor.x, monitor.y);
         this._backgroundBin.set_size(monitor.width, monitor.height);
 
