How do I change the Name of a window in X11(R6)

B

bashcommando

Guest
How do I do this? As you probably guessed, I am diving into the deep world of X.
 


The window name is created by the Graphical toolkit normally. So it depends on what you are using.
However, if you are using straight X11 then use this:
Code:
XStoreName(display, w, window_name)
      Display *display;
      Window w;
      char *window_name;
The XStoreName() function assigns the name passed to window_name to the specified window. A window manager can display the window name in some prominent place, such as the title bar, to allow users to identify windows easily. Some window managers may display a window's name in the window's icon, although they are encouraged to use the window's icon name if one is provided by the application. If the string is not in the Host Portable Character Encoding, the result is implementation dependent.
 

Members online


Top