-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Qt4 backend windows don't have WM_CLASS property #4746
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
Comments
Thanks @woky for telling us about this. Currently I work on refactoring all the windowing code, so consider this on my todo list when I continue the work on the qt backend. In your opinion, should all matplotlib windows have the same class, or should we differentiate between plot windows and other windows such as the subplot config window? |
@OceanWolf Thank you for your efforts. All programs I've checked so far use one only single class name (well, two, but both same). For instance all Octave figures have
which is fine because Octave GUI elements I use are only figures which I want floating most of time. However, in some programs I wish for different types of windows to have different classes (for instance to make diff window floating in Intellij IDEA). As far as I know all sane tiling WMs can match class by wildcard or regex so if all classes started with |
I looked into doing something about this awhile ago and got lost in the details of where you set this in pyqt. I don't know if any of the other backends do this either. |
some backends do set something, others do not (notably the qt4agg backend doesn't set anything) |
This is also valid for the |
Should be closed by #8394 (except for WX which doesn't expose such an API at all, and for macos where it isn't even clear that WM_CLASS exists at all). Feel free to reopen if a solution appears for WX or if this is actually useful on OSX as well. |
Without unique class name it's almost impossible to match and make the figure window floating in tiling WMs (like i3, Xmonad, ...).
The text was updated successfully, but these errors were encountered: