GNOME Bugzilla – Bug 164080
when dropping from mozilla, confirmation dialog is under the browser's window
Last modified: 2005-01-27 11:29:46 UTC
As the title says. Using the new and very nice nautilus support for dropping links from mozilla, the confirmation dialog that appears (link/download) is under the browser window (I've seen it happen here with epiphany).
That's because the dialog is coming from nautilus, not from epiphany. I don't know how to fix this, because it's the wm that decides to place it under epiphany (because epiphany is active and nautilus is not)
I guess this has to do with all the recent focus-stealing-prevention thing introduced in metacity lately... I think there is a way to tell metacity we want the focus anyway - I remember doing it somehow in gnome-dictionary... I'll try to look into it when I get more time :)
Created attachment 36507 [details] [review] Patch Does this fix it? Apologies if it doesn't compile, running Gnome 2.8 on this machine. But if it doesn't, it should be trivial to fix that ..
Almost ;-) I had to apply to small modifications to make it work : 1. cast parent_window to a GTK_WINDOW in the call to gtk_message_dialog_new 2. call gtk_window_present (GTK_WINDOW(dialog)); before calling gtk_dialog_run. I know that gtk_dialog_run should be calling gtk_window_present, but... Otherwise it works.
Created attachment 36510 [details] [review] New patch Something like this then, I guess. I really should upgrade ;)
in cvs.