xfce4-session-logout fails to get focus sometimes, allowing input to the wrong window
It is possible that when the xfce4-session-logout window appear, it will fail to grab the focus. The focus grab failure allows the user to add keyboard input to windows behind it. For example, I can write this bug report while the window of xfce4-session-logout is appearing in the front of the Firefox window.
Steps to reproduce:
xfce4-session-logout, either using the menu or using the terminal;
- Press Alt-Tab;
- Wait the shutdown options window appear;
- Press Tab again to choose the window behind you want to focus;
- Focus the wrong window.
This bug can be problematic in the scenario the user don't want to shutdown, but to suspend or hibernate and end sending input to the wrong window.
The attached video has the recording of the bug happening. This bug is easier to reproduce in the first run of xfce4-session-logout, related to #52
The system has Xubuntu 20.04 using the xubuntu-dev staging PPA.
$ xfce4-session-logout --version xfce4-session 4.16.0 (Xfce 4.16) Copyright (c) 2004-2020 A equipe de desenvolvimento do Xfce. Todos os direitos reservados. Escrito por Benedikt Meurer <email@example.com> e Brian Tarricone <firstname.lastname@example.org>. Por favor relate os erros para <https://bugzilla.xfce.org/>.