GNOME Bugzilla – Bug 368041
Password entry dialog appears beneath other windows
Last modified: 2012-06-10 15:15:52 UTC
Please describe the problem: It is possible for the password entry dialog to appear beneath other windows. Since the dialog does not appear in the Window Selector, it can be very hard to find. This is frustrating because actions in the Evolution UI depend on correct entry of the password, but there is no link between the Evolution window and the password entry dialog, and no easy way to find it once it has appeared and gotten lost beneath another program's windows. Steps to reproduce: 1. Launch evolution 2. Before the password entry dialog box appears switch to another program on another workspace 3. Wait a few seconds; the password entry dialog box appears beneath the program you switched to Actual results: Expected results: Does this happen every time? Other information:
I can confirm this is really frustrating sometimes.
Created attachment 100593 [details] [review] Potential solution This patch makes password dialogs transient for the main window (unless another parent was specified).
Ted, I dont think this is a right fix IMO. We should get the top level widget in specific cases and pass it to this.
Thanks for the review Srinivasa. It would be nice if all the callers passed through the GtkWindow* that they expect the dialog to be transient for, I was originally aiming to do that but got lost in the zoo amongst the Camels and Bonobos. Instead I decided to ensure that, as a fallback, password dialogs are always transient for a top-level window. It's never nice for a password dialog to get lost without a panel button. So I agree that the best solution to this is for the parent window to be passed in, but in addition to that it should also be the case that no password window is without a parent - which the patch ensures.
Ted, if you need any help let me know. AFAIK, a lot of plugin codes introduce this. We need to tackle this on a issue by issue basis. We can chat on #evolution and I can help you the best possible extend to explain the code flow, if you can get me the situations. I hope that we would fix it the right way. Thanks.
*** Bug 464027 has been marked as a duplicate of this bug. ***
*** Bug 394113 has been marked as a duplicate of this bug. ***
This is fixed in Evolution 3.5.3. Password prompts are now system modal and are handled by a D-Bus service rather than by Evolution itself.