Created attachment 8162
child windows test case
When an application has child windows, it can be tricky to raise a child window that is behind another child window. If one only clicks inside each window or on the title bar, that child window is raised as expected. But if the focus is given to a child window by using the Window Buttons or by switching to it with Alt+Tab, the child window receives the focus but is not raised. When it has received the focus like that, clicking inside the window or on the title bar doesn’t raise the window. To raise it, one has to click on another child window then back on that child window.
This behavior is especially annoying when a child window is completely hidden by another child window. To raise the hidden child window, one has to either move the overlapping window, or lower it by middle-clicking on the title bar.
Also, selecting the main window by using the Window Buttons doesn’t give focus to the main window but to the top child window (switching to it with Alt+Tab works).
Note that the “Raise on focus” setting has no effect on this.
What I would expect:
* Selecting a child window by using the Window Buttons or by switching to it with Alt+Tab gives it the focus and raises it, as if one had clicked on the window.
* Selecting the main window by using the Window Buttons should give focus to it.
Metacity and KWin behave this way.
A test case is attached to this bug. It creates a main window with 3 child windows. It uses Python 3 and PyQt 5.
I’m willing to fix it myself, but I have no idea in which file this is handled. If someone could give me a clue, it would be great.
Not sure which version of xfwm4 you use or if you tweaked your environment to behave differently, but same as bug 14953, it works as expected here.
I just explained my configuration in bug 14953 comment 2.
Cannot reproduce this with current code, the transient windows do not show in tha alt-tab, do not show in the taskbar either, they get iconified and restored along with their parent as expected.
Looks consistent to me.
Created attachment 8188
child windows test case
Replace PyQt5 test case with PyGTK test case.
-- GitLab Migration Automatic Message --
This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfwm4/-/issues/310.
Please create an account or use an existing account on one of our supported OAuth providers.
If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests
Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev