Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69568

Attention state out of sync with window manager

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.11.2, 5.12.0
    • GUI: Window management
    • None
    • Arch Linux, i3 window manager
    • Linux/X11

    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.

      Attachments

        1. source_code.zip
          2 kB
        2. test.py
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            he-ro H R
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes