RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1387124 - Do not steal focus when alarm notify dialog is shown
Summary: Do not steal focus when alarm notify dialog is shown
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: evolution
Version: 7.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Milan Crha
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On: 1386852
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-20 07:39 UTC by Oliver Ilian
Modified: 2017-08-01 12:25 UTC (History)
3 users (show)

Fixed In Version: evolution-3.22.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 12:25:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2066 0 normal SHIPPED_LIVE evolution bug fix and enhancement update 2017-08-01 16:05:58 UTC

Description Oliver Ilian 2016-10-20 07:39:22 UTC
Description of problem:
The Evolution appointment window steals the focus every time it pops up. If you are not looking at the screen while typing, you suddenly start typing in the search field of the reminder. This is pretty annoying.

Version-Release number of selected component (if applicable):
evolution-3.12.11-22.el7.x86_64

How reproducible:
Every time a reminder comes up

Steps to Reproduce:
1. Create a appointment
2. Type while the appointment comes up

Actual results:
Evolution reminder window steals focus and you type suddenly in a different window

Expected results:
Reminder window comes up without focus, so you still type at the right window. Reminder window only gets focus when you click on it.

Comment 2 Milan Crha 2016-10-20 09:20:13 UTC
Thanks for a bug report. I fixed this upstream with commit [1], which is for 3.22.2+ and 3.23.1+. You can apply it to
   /usr/share/evolution/3.12/ui/alarm-notify.ui
and it'll last until you update the evolution. This change will be included in RHEL 7.4, after the rebase to 3.22.x version of the evolution (bug #1386852).

I also made a follow-up commit [2], which can be done only for 3.23.1, due to new translatable strings and changed UI, which are are not permitted in stable releases.

[1] https://git.gnome.org/browse/evolution/commit?id=3694a31
[2] https://git.gnome.org/browse/evolution/commit?id=3c3439c

Comment 3 Oliver Ilian 2016-10-20 09:43:37 UTC
Quick question: Will the window still be on top of all other windows.. as this is actually nice to see the window, just the focus stealing would be the problem. SO the idea was.. "Always on top=True" while "Has initial focus=False".. So the window can still set with focus by clicking on it.

Comment 4 Milan Crha 2016-10-20 14:57:23 UTC
Yes, the window stays on the top after applying both commits from comment #2. The second commit adds an option for it, but it's left turned on, which means "current behaviour" (except of stealing focus). It's enough if you apply the first commit to the .ui file on your local machine and you are all set.

Comment 5 Oliver Ilian 2016-11-30 14:11:10 UTC
Hey Milan, I have tested the patch on my test system, and the appointment window still pops up on front and takes the focus.

Comment 6 Milan Crha 2016-11-30 14:49:41 UTC
Are you running GNOME Shell, or any other desktop/window manager? The documentation says that it's only a hint and the window managers can ignore it, which, I'm afraid, happened here.

Comment 7 Oliver Ilian 2016-11-30 14:51:44 UTC
I am running Gnome Shell 3.14 (RHEL 7) (not classic mode)

Comment 8 Milan Crha 2016-12-02 09:53:05 UTC
I tried to reproduce with gnome-shell-3.14.4-53.el7.x86_64 and it works for me, though it didn't right after I changed the alarm-notify.ui file. It required a re-start of the evolution-alarm-notify process (kill it and then run evolution works just fine, because the Evolution starts the process when not running).

Comment 9 Oliver Ilian 2016-12-02 10:06:35 UTC
I will try again. I am sure I even rebooted at some time after making the change. Will et you know after the next reminder :D

Comment 10 Milan Crha 2016-12-02 12:50:29 UTC
My test is to create an event in a local calendar with a reminder with 30 minutes before the appointment, say with a start at 10:00, while it's 9:40 (thus it'll be triggered immediately after the event is saved). To let it trigger again I edit this existing event and change its start time by one minute, thus in this case at 10:01.

Comment 11 Milan Crha 2017-03-09 17:49:48 UTC
This change is part of the rebased package (bug #1386852). I use it locally and it works as expected under MATE, but it higly depends on the desktop environment whether it obeys the flag or not. If you've trouble under GNOME Shell, then I suggest to create a new bug report there, referencing this one.

Comment 13 Bohdan Milar 2017-06-12 14:31:29 UTC
Tested manually on x86_64, ppc64le and aarch64 using evolution-3.22.6-10.el7

The described problem did not appear (i.e. focus was not stolen).

Comment 14 errata-xmlrpc 2017-08-01 12:25:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2066


Note You need to log in before you can comment on or make changes to this bug.