You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ix mentioned that he had some trouble with the way handling ignored windows works when attempting to switch from wmutils.
The exact issue happened when making a focus changing script. As listing the mountpoint shows every window, including ignored ones (overrride_redirect = true), and unmapped windows. This means when finding a new window to focus, instead of just picking the next id from the list he had to first go and check if that window was unmapped or ignored, and if it was, go and get a new id. Obviously this is quite a lot of messy code for something that should arguably be fairly simple. Contrast this to wmutils, where you can choose to list every window, just windows which aren't unmapped or ignored or only windows which are. I was wondering if would be possible to make this sort of thing easier, and am interested in hearing people's point of view on the matter.
As far as I see we have 3 options:
Leave it working how it does - people just have to go and check the mapped and ignored files when doing something like this.
Make ignored (and possibly unmapped windows) hidden. This would achieve something similar to what wmutils has, except it has the downside that not all windows can be accessed from /0xXXXXXXXX and when interacting with a certain window you would first have to work out if you needed to access it using /<winid> or /.<winid>.
Don't include ignored windows in the list at all. The override_redirect flag is for telling the wm not to interfere with the window, and we should respect this by making it impossible. This still leaves us with the problem of what to do with unmapped windows however.
If anyone has any strong opinions on which option to go for, or any other ideas, please tell me.
Thanks.
The text was updated successfully, but these errors were encountered:
$X11FS/all - All windows (override_redirect yes, unmapped, etc) $X11FS/mapped - All mapped windows (with no override_redirect either) $X11FS/unmapped - All unmapped windows (with no override_redirect) $X11FS/override - Windows with override_redirect set
This seems like a good solution. Will attemt to implement it, perhaps using symlinks from the other dirs to $X11FS/all. I'll leave this issue open until this is implemented, thanks for your help.
@ix mentioned that he had some trouble with the way handling ignored windows works when attempting to switch from wmutils.
The exact issue happened when making a focus changing script. As listing the mountpoint shows every window, including ignored ones (overrride_redirect = true), and unmapped windows. This means when finding a new window to focus, instead of just picking the next id from the list he had to first go and check if that window was unmapped or ignored, and if it was, go and get a new id. Obviously this is quite a lot of messy code for something that should arguably be fairly simple. Contrast this to wmutils, where you can choose to list every window, just windows which aren't unmapped or ignored or only windows which are. I was wondering if would be possible to make this sort of thing easier, and am interested in hearing people's point of view on the matter.
As far as I see we have 3 options:
/<winid>
or/.<winid>
.If anyone has any strong opinions on which option to go for, or any other ideas, please tell me.
Thanks.
The text was updated successfully, but these errors were encountered: