SetWindowTitle should properly set CLASS_NAME and INSTANCE_NAME on X11 platforms #2904
Closed
3 of 11 tasks
Labels
Milestone
Operating System
What feature would you like to be added?
SetWindowTitle should properly set CLASS_NAME and INSTANCE_NAME on X11
in the case of GLFW, which is the default backend being used for x11, this is not happening. one can see using
xprop
that the class_name and instance_name are the defaults, despite a custom title having been set.two things need to be done
Why is this needed?
on X11, it is standard for programs to differentiate themselves to the WM or other applications via their window and instance class.
the most common use is for window managers to read the initial window hints in order to perform different behaviors, for instance, starting an application in windowed, tiled, fullscreen mode, a specific desktop, etc.
window_class/instance is also sometimes used to identify applications for automation. technically, "instance" should be unique and "class" not necessarily unique, though these conventions are hardly followed.
can read more here:
https://tronche.com/gui/x/icccm/sec-4.html#WM_CLASS
https://manpages.ubuntu.com/manpages/bionic/man3/X11::Protocol::WM.3pm.html (ctrl-f WM_CLASS)
The text was updated successfully, but these errors were encountered: