Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows missing in ilia -p windows #43

Open
MHellmund opened this issue Aug 29, 2022 · 2 comments
Open

windows missing in ilia -p windows #43

MHellmund opened this issue Aug 29, 2022 · 2 comments

Comments

@MHellmund
Copy link

Some applications, e.g. xterm, do not appear in the ilia -p windows list.

Reason: They do not set the _NET_WM_WINDOW_TYPE property. According to https://specifications.freedesktop.org/wm-spec/1.3/ar01s05.html, windows without this property should be taken by the WM as if _NET_WM_WINDOW_TYPE_NORMAL is set.

Please change the test in src/windows/WindowPage.vala:traverse_nodes() so that windows with window_type=="none" are included, too.

Thank you!

@kgilmer
Copy link
Member

kgilmer commented Sep 5, 2022

Hi @MHellmund , thanks for providing the background info and hints for implementation. That made it pretty easy to follow your thinking and make the change. I found that after allowing windows of type "unknown" to pass the filter that i3bar was also present. It doesn't make sense for i3bar to be in the window list. For now, I'm explicitly excluding it via it's class property. The change is building now into unstable, but I may opt to revert or change it if other issues pop up in testing.

@MHellmund
Copy link
Author

Thank you!
One could argue that this is a bug in i3bar. According to the specifications, only 'normal' windows like xterm are allowed to not set the window type. Apps like i3bar should set it to 'dock' or 'desktop', imho.

Perhaps the best solution for ilia would be some config mechanism, where users can include/exclude windows as they like
according to class properties, similar to the i3 config?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants