[L2Ork-dev] question about qjackctl explicitly setting the wm class name

Mathieu Bouchard matju at artengine.ca
Sun Dec 2 01:16:20 UTC 2012


Le 2012-11-30 à 10:22:00, Ivica Ico Bukvic a écrit :

> So, here's the question that's been bugging me: is there a way to 
> explicitly set the window class name in qt as is the case with tcl/tk 
> (FWIW, I would be seriously surprised if one couldn't since I consider 
> qt far superior to tcl/tk) and if so, would it be possible to add this 
> to the future releases of qjackctl?

Search for "window class"

find http://www.astro.princeton.edu/~rhl/Tcl-Tk_docs/tk/SetClass.3.html

See WM_CLASS.

Search qt4 WM_CLASS.

find http://lists.kde.org/?l=kde-core-devel&m=109120145218935&w=2

You can see that it's actually using the Xlib API instead :

   XClassHint hint;
   hint.res_class = const_cast< char* >( "Konsole" );
   hint.res_name = const_cast< char* >( "konsole" );
   XSetClassHint( qt_xdisplay(), w->winId(), &hint );

I didn't try it.

  ______________________________________________________________________
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC


More information about the L2Ork-dev mailing list