Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When last window does not take focus, global shortcuts don't work any more #703

Open
sthibaul opened this issue Nov 11, 2021 · 3 comments
Open

Comments

@sthibaul
Copy link

sthibaul commented Nov 11, 2021

Steps to reproduce the behaviour

  • Run the MATE desktop with the Marco window manager
  • Do not open any application except the following
  • Open a mate-terminal, open a second mate-terminal window
  • Run this python script in the first window
    test.py.txt
  • Reduce this first window, focus switches to the second mate-terminal window
  • exit the second mate-terminal window
  • Press alt-F1

Expected behaviour

The application menu should open

Actual behaviour

The application menu does not open

Details

Normally (without running the attached script), when the last window is closed, Marco sets the focus to the Desktop window, and global shortcuts work fine.

When running the attached script, this however fails. The attached script creates a window that has the gtk accept-focus property set to False, i.e. with XWMHints.input set to False. When exiting the second mate-terminal window, marco tries to switch back to the last window, i.e. the window of the script, but since it has the input hint set to false, marco fails to do so, and apparently doesn't set the focus to the Desktop window, and it's thus still the root window that gets the focus. And then the global shortcuts such as alt-F1 do not work any more.

The actual user case at stake is people using the Orca screen reader with the braille monitor enabled (orca -e braille-monitor), which disables input of its window the same way as the attached script. Whenever such user closes the last application and thus the braille monitor is the last window, the focus is stuck on the root window. And the user then cannot use a global shortcut to get back focus to anything useful, i.e. the user ends up being completely stuck and has to reboot the system...

MATE general version

1.24.1

Package version

1.24.1

Linux Distribution

Debian

@mmhere
Copy link

mmhere commented Aug 27, 2022

#647

related?

Lots of focus problems in releases later than 1.20.1.

@ethindp
Copy link

ethindp commented Oct 14, 2022

I've faced this issue too, and this is the (major) reason that many (and I mean many) blind users explicitly avoid Mate and tell others to not use it: this bug is definitely not minor (or at least I don't consider it one), and it has caused me much frustration and irritation, especially since this bug has been open for almost a year and I'd expect something to come of it. I've disabled braille in Orca, but I don't know if that actually disables the braille monitor. This appears to most often happen with Electron applications, though other applications trigger it as well. I'm using Arch Linux, latest Mate release.

@vojtapolasek
Copy link

I agree. I am also a blind user of Mate desktop. I really like the desktop because it is fast and lightweight, but this bug is really annoying and hindering the usability. The question from new linux users: "But this just does not happen in Windows, why here?" is really not easy to answer... Please investigate this. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants