Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.11.2, 5.12.0
-
None
-
Arch Linux, i3 window manager
Description
The attached program test.py uses PyQT to create a window with tree buttons. The buttons should raise the window after 10 seconds and set the urgency hint.
For me on Arch Linux with X11 and the i3 window manager, both buttons activate the window, if it is on the current i3 workspace. But if I switch away within the 10 seconds to another workspace the two methods behave differently. The button with label Method 0 removes the urgency hint again, even though it is only set in the code. I added a sleep(1) call in order to see that the hint appears and disappears again.
The button with label Method 1 on the other hand has an additional call to QCoreApplication.processEvents(), which causes the urgency hint to stay and this is the desired behavior. I would now say that adding this call to QCoreApplication.processEvents() should not be necessary in order to have a functioning code, that is why I opened the bug report.
I previously opened a report against my window manager i3, because I did not know where the possible fault lies, the report can be seen here: https://github.com/i3/i3/issues/3321 The maintainers suggested to open a bug against QT.
I would gladly try to help to triage this, if there is anything I can do to help, please let me know.