Race(?) on hiding a window leaves the window unresponsive and not hidden
Submitted by Ulrik
Assigned to Olivier Fourdan @olivier
Description
Bug when a window:
- Is in focus.
- Receives a focus-out event
- Hides itself
- Would get back focus due to the event in (2) if (3) didn't happen.
Steps to reproduce:
- Run this script, which has two windows W and Y
- Move Y window to the left
- Click inside Y to show W again
- Click inside W and it prints a message from its button-press-event
- W has focus, now click the Y window's close button
- W is not hidden and does not respond to click events
GTK version: 3.22
$ xfwm4 --version
This is xfwm4 version 4.12.3 (revision 7fdcb53) for Xfce 4.12
Released under the terms of the GNU General Public License.
Compiled against GTK+-2.24.30, using GTK+-2.24.31.
Build configuration and supported features:
- Startup notification support: Yes
- XSync support: Yes
- Render support: Yes
- Xrandr support: Yes
- Embedded compositor: Yes
- KDE systray proxy (deprecated): No
Attachment 6991, "Python Gtk 3 reproducer":
focusout.py
Version: 4.12.0
Edited by Yousuf Philips