shutdown options window does not have focus

Bug #1714399 reported by Geoffroy Ménard
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ubuntu MATE
Invalid
Undecided
Unassigned
mate-session-manager (Ubuntu)
Fix Released
Medium
Unassigned
Xenial
Fix Released
Medium
Vlad Orlov
Zesty
Fix Released
Medium
Vlad Orlov
Artful
Fix Released
Medium
Vlad Orlov
Bionic
Fix Released
Medium
Unassigned

Bug Description

[Impact]

In MATE session, logout and shutdown dialogs sometimes don't get the focus, and it's impossible to switch to them with Alt-Tab due to their design. One has to use the mouse to switch there. Using Ctrl-Alt-Tab can help as well, but I found out it doesn't work reliably in VirtualBox.

The fix for this issue is provided in the debdiffs attached to the report.

Would be nice to have the fix backported to all current Ubuntu releases (Xenial, Zesty and Artful). The bug is very annoying for users who rely on keyboard shortcuts to navigate the desktop. It also can be considered a11y issue.

[Test Case]

There are several ways to reproduce this issue. For me the most reliable one is to use keyboard shortcut to call the shutdown dialog:

- press Ctrl-Alt-Del, the shutdown dialog appears, and it's usually focused
- press Esc to dismiss the dialog
- press Ctrl-Alt-Del again, now the shutdown dialog will appear unfocused

Now you need to use the mouse or Ctrl-Alt-Tab to interact with the dialog.

[Regression Potential]

The fix just ensures that logout/shutdown dialogs will be always focused when they appear on the screen. It means the dialog's behavior is restored to what users expect. Nothing else is affected, so no chance for regressions.

[Original Description]

Whether called by the power button (if configured as "Ask user") or by clicking Quit in the menu, the shutdown options window does not have the focus. It also does not appear in the windows when using alt-tab, making it virtually impossible to shutdown without using the mouse/touchpad.

Revision history for this message
Martin Wimpress  (flexiondotorg) wrote :

What version of Ubuntu MATE are using using?

Changed in ubuntu-mate:
status: New → Incomplete
Revision history for this message
Etienne Papegnies (etienne-papegnies) wrote :

I can reproduce this in Ubuntu MATE 16.04.3 with compton.
I can also reproduce on 17.10 with compton, but not all the time. Maybe some randomness here. I think the stacking of windows plays into this somehow, I can't reproduce if I have only one terminal window open.
The part about the window not being in the window list (alt-tab), that I can reproduce always, not sure if it's intended.

Changed in ubuntu-mate:
status: Incomplete → Confirmed
Changed in ubuntu-mate:
status: Confirmed → Invalid
Changed in mate-session-manager (Ubuntu):
status: New → Triaged
Revision history for this message
Alexander Browne (elcste) wrote :

I've noticed this too in 17.04 and 17.10 with compton plus marco and metacity. It does seem to happen less with only one window open, but after trying various of combinations of 1, 2 and 3 windows open of different apps, sometimes with windows minimized, it's not as simple as that :-/

Revision history for this message
Vlad Orlov (monsta) wrote :

Upstream report:
https://github.com/mate-desktop/mate-session-manager/issues/123

Workaround: use Ctrl-Alt-Tab

Revision history for this message
Vlad Orlov (monsta) wrote :

This is now fixed upstream. Attaching the patch with the fix.

tags: added: xeni
removed: keyboard-shupport
tags: added: artful xenial zesty
removed: xeni
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix logout/shutdown dialog focus" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Vlad Orlov (monsta) wrote :
Revision history for this message
Vlad Orlov (monsta) wrote :
Revision history for this message
Vlad Orlov (monsta) wrote :
Revision history for this message
Vlad Orlov (monsta) wrote :

[Impact]

In MATE session, logout and shutdown dialogs sometimes
don't get the focus, and it's impossible to switch to
them with Alt-Tab due to their design. One has to use
the mouse to switch there. Using Ctrl-Alt-Tab can help
as well, but I found out it doesn't work reliably in
VirtualBox.

The fix for this issue is provided in the debdiffs
attached to the report.

Would be nice to have the fix backported to all current
Ubuntu releases (Xenial, Zesty and Artful). The bug is
very annoying for users who rely on keyboard shortcuts
to navigate the desktop. It also can be considered a11y
issue.

[Test Case]

There are several ways to reproduce this issue. For me
the most reliable one is to use keyboard shortcut to call
the shutdown dialog:

- press Ctrl-Alt-Del, the shutdown dialog appears, and
  it's usually focused
- press Esc to dismiss the dialog
- press Ctrl-Alt-Del again, now the shutdown dialog will
  appear unfocused

Now you need to use the mouse or Ctrl-Alt-Tab to interact
with the dialog.

[Regression Potential]

The fix just ensures that logout/shutdown dialogs will be
always focused when they appear on the screen. It means
the dialog's behavior is restored to what users expect.
Nothing else is affected, so no chance for regressions.

Vlad Orlov (monsta)
tags: added: ubuntu-mate-xenial-sru ubuntu-mate-zesty-sru
Simon Quigley (tsimonq2)
Changed in mate-session-manager (Ubuntu):
assignee: nobody → Vlad Orlov (monsta)
description: updated
Changed in mate-session-manager (Ubuntu):
importance: Undecided → Medium
Changed in mate-session-manager (Ubuntu Artful):
status: New → In Progress
Changed in mate-session-manager (Ubuntu Bionic):
status: Triaged → In Progress
Changed in mate-session-manager (Ubuntu Zesty):
status: New → In Progress
Changed in mate-session-manager (Ubuntu Xenial):
status: New → In Progress
importance: Undecided → Medium
Changed in mate-session-manager (Ubuntu Artful):
importance: Undecided → Medium
Changed in mate-session-manager (Ubuntu Xenial):
assignee: nobody → Vlad Orlov (monsta)
Changed in mate-session-manager (Ubuntu Zesty):
assignee: nobody → Vlad Orlov (monsta)
Changed in mate-session-manager (Ubuntu Artful):
assignee: nobody → Vlad Orlov (monsta)
Changed in mate-session-manager (Ubuntu Zesty):
importance: Undecided → Medium
Simon Quigley (tsimonq2)
Changed in mate-session-manager (Ubuntu Bionic):
status: In Progress → Fix Released
assignee: Vlad Orlov (monsta) → nobody
Revision history for this message
Simon Quigley (tsimonq2) wrote :

Uploaded.

Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Geoffroy, or anyone else affected,

Accepted mate-session-manager into artful-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/mate-session-manager/1.18.1-2ubuntu2.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-artful to verification-done-artful. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-artful. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in mate-session-manager (Ubuntu Artful):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-artful
Changed in mate-session-manager (Ubuntu Zesty):
status: In Progress → Fix Committed
tags: added: verification-needed-zesty
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Hello Geoffroy, or anyone else affected,

Accepted mate-session-manager into zesty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/mate-session-manager/1.18.0-0ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-zesty to verification-done-zesty. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-zesty. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Hello Geoffroy, or anyone else affected,

Accepted mate-session-manager into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/mate-session-manager/1.12.2-1ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in mate-session-manager (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed-xenial
Revision history for this message
Vlad Orlov (monsta) wrote :

Performed the same test in Xenial, Zesty and Artful:

- replaced local build of mate-session-manager package with -proposed version:
  - 1.12.2-1ubuntu0.1 from xenial-proposed in Xenial
  - 1.18.0-0ubuntu1.1 from zesty-proposed in Zesty
  - 1.18.1-2ubuntu2.1 from artful-proposed in Artful

- restarted MATE session
- invoked logout and shutdown dialogs several times via various methods (menu items, keyboard shortcuts, mate-session-save command-line tool)

All good, both logout and shutdown dialogs always have the focus after they appear.

tags: added: verification-done verification-done-artful verification-done-xenial verification-done-zesty
removed: verification-needed verification-needed-artful verification-needed-xenial verification-needed-zesty
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mate-session-manager - 1.18.1-2ubuntu2.1

---------------
mate-session-manager (1.18.1-2ubuntu2.1) artful; urgency=medium

  * fix-quit-dialog-focus.patch: new patch. Don't lose focus
    when displaying logout or shutdown dialog. (LP: #1714399)

 -- Vlad Orlov <email address hidden> Sun, 29 Oct 2017 13:57:03 +0300

Changed in mate-session-manager (Ubuntu Artful):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for mate-session-manager has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mate-session-manager - 1.18.0-0ubuntu1.1

---------------
mate-session-manager (1.18.0-0ubuntu1.1) zesty; urgency=medium

  * fix-quit-dialog-focus.patch: new patch. Don't lose focus
    when displaying logout or shutdown dialog. (LP: #1714399)

 -- Vlad Orlov <email address hidden> Sun, 29 Oct 2017 14:29:36 +0300

Changed in mate-session-manager (Ubuntu Zesty):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mate-session-manager - 1.12.2-1ubuntu0.1

---------------
mate-session-manager (1.12.2-1ubuntu0.1) xenial; urgency=medium

  * fix-quit-dialog-focus.patch: new patch. Don't lose focus
    when displaying logout or shutdown dialog. (LP: #1714399)

 -- Vlad Orlov <email address hidden> Sun, 29 Oct 2017 15:20:19 +0300

Changed in mate-session-manager (Ubuntu Xenial):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.