Bug 711257

Summary: password entry dialog doesn't get focus
Product: [Fedora] Fedora Reporter: Aram Agajanian <agajan>
Component: claws-mailAssignee: Andreas Bierfert <andreas.bierfert>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 15CC: andreas.bierfert, bugs.michael, corbet, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: claws-mail-3.7.9-4.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-21 17:42:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 693846, 693990    
Bug Blocks:    

Description Aram Agajanian 2011-06-07 01:55:44 UTC
Description of problem:
When the password entry dialog comes up, it should automatically be given keyboard focus.  You shouldn't have to click on it with the mouse.

Version-Release number of selected component (if applicable):
claws-mail-3.7.9-2.fc15.x86_64

How reproducible:
Happens every time

Steps to Reproduce:
1.  Start Claws Mail.  The main window should appear. 
2.  You should already have an account set up.  Press Ctrl-I to Retrieve Mail from Current Account.  The password entry dialog should appear.

  
Actual results:
The password entry dialog doesn't have keyboard focus.  You have to click on the password entry field in order to enter your password with the keyboard.

Expected results:
The cursor should automatically be in the password entry field.  That way, you can enter your password with the keyboard and not have to use the mouse.

Comment 1 Michael Schwendt 2011-06-07 08:35:52 UTC
Are you sure you cannot type in the password immediately? Here it works (Fedora 15 x86_64 GNOME Shell), although the cursor is not displayed.

Comment 2 Aram Agajanian 2011-06-08 01:39:05 UTC
I just verified that I can't type the password in immediately.

What seems to be happening is that when I press a keyboard command like Ctrl-I, the entire Claws Mail application loses focus.  You can see that because the name is not listed next to Activities at the top left.  

If I press Alt-Tab several times, then I can get Claws-Mail to have focus.  After focus is restored, the password entry field has the cursor in it.  I can then enter the password.

A similar situation occurs when I use the G key to bring up the dialog to change mail folder.  The entire Claws Mail application loses focus.

Comment 3 Michael Schwendt 2011-06-08 10:33:27 UTC
Although I still cannot reproduce with the password dialog, it's not limited to the password dialog. Several dialogs don't get any focus at all actually. E.g. Configuration > Filtering, Configuration > Plugins, Configuration > Templates. Their title bar is greyed out for these dialogs.

This is specific to GNOME Shell or its window manager (mutter), though, and could be just a bug or side-effect of how it handles some dialogs. By comparison, it's also not reproducible within Openbox.

Comment 4 Jonathan Corbet 2011-06-08 15:12:32 UTC
<metoo>.  I've encountered it with the annoying "process mark" dialog, and with refiling of messages as well.  

Interestingly, the older claws-mail-3.7.6-1.fc14.1.x86_64 package I installed in response to the startup crash bug didn't have trouble with focus.  claws-mail-3.7.9-3.fc16.x86_64 definitely does, so something has changed in between.

Comment 5 Michael Schwendt 2011-06-08 16:24:42 UTC
Ah, that's helpful! It's actually the work-around patch for bug 693990 [gtk_window_deiconify() ignored : Claws Mail starts minimized] that causes this.

Comment 6 Jonathan Corbet 2011-06-08 17:02:20 UTC
One additional bit of weirdness I've noted with this version: windows (the compose window in particular) have a tendency to pop up *behind* the main claws window.  That can be annoying, especially if there isn't even a corner sticking out to make it clear where the window is.  Don't know if it's a related problem or not, but 3.7.6-1 didn't behave that way.

Comment 7 Michael Schwendt 2011-06-08 17:22:51 UTC
3.7.6-1.fc14.1 without a patch would also start minimized => bug 693990

We need a [better] solution for that issue, because the focus problem with the dialogs is not acceptable.

If - as a last resort - we take out the gtk_window_iconify() call as an alternative for the patch for bug 693990, Claws Mail would appear briefly on the screen for users who enable the "Hide at start-up" Trayicon feature.

Comment 8 Andreas Bierfert 2011-06-08 19:23:08 UTC
(In reply to comment #7)
> If - as a last resort - we take out the gtk_window_iconify() call as an
> alternative for the patch for bug 693990, Claws Mail would appear briefly on
> the screen for users who enable the "Hide at start-up" Trayicon feature.

To me the trade-off between the trayicon feature and the dialogs not working is clearly to remove the workaround (obviously this needs to be handled more gracefully).

Comment 9 Michael Schwendt 2011-06-08 19:33:30 UTC
Sure, but what do you think about replacing the workaround? by taking out the iconify call instead ->
http://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=960

Comment 10 Andreas Bierfert 2011-06-09 05:37:46 UTC
That would probably be the best solution for now till there is some more input an the issue.

Comment 11 Fedora Update System 2011-06-09 09:05:52 UTC
claws-mail-3.7.9-4.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/claws-mail-3.7.9-4.fc15

Comment 12 Fedora Update System 2011-06-11 04:23:14 UTC
Package claws-mail-3.7.9-4.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing claws-mail-3.7.9-4.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/claws-mail-3.7.9-4.fc15
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2011-06-21 17:42:19 UTC
claws-mail-3.7.9-4.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.