Summary: | Qt::Tool windows don't regain focus after pop-ups close on X11 | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Frederick Zhang <frederick888> |
Component: | core | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | CC: | bharadwaj.raju777, nate, ricardo, tbacc+kde |
Priority: | NOR | ||
Version: | 5.22.1 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Frederick Zhang
2021-06-22 12:11:22 UTC
Copy of my comment here https://invent.kde.org/utilities/yakuake/-/merge_requests/42#note_288516 This happens because the `Qt::Tool` flag sets the `Qt::WA_X11NetWmWindowTypeUtility` attribute. Making it an utility window which messes with the focus handling. I didn't test this,yet. But clearing the attribute by something like `setAttribute(Qt::WA_X11NetWmWindowTypeUtility, false);` should fix this, I think. Simply forcing the window type to "normal window" with a window rule fixes the issue Could this also make yakuake not appear in the task switcher? See https://bugs.kde.org/show_bug.cgi?id=441056 Yep, setting the window type to "normal window" made yakuake show up again in the task switcher. *** Bug 441056 has been marked as a duplicate of this bug. *** This bug was reported against an outdated version of KWin. We have made many changes since the. If the issue persists in newer versions can you reopen the bug report updating the version number. |