From: <ale...@us...> - 2011-01-29 16:19:35
|
Revision: 12287 http://amsn.svn.sourceforge.net/amsn/?rev=12287&view=rev Author: alexandernst Date: 2011-01-29 16:19:29 +0000 (Sat, 29 Jan 2011) Log Message: ----------- Set tray class hint Modified Paths: -------------- trunk/amsn/utils/linux/traydock/libtray.c Modified: trunk/amsn/utils/linux/traydock/libtray.c =================================================================== --- trunk/amsn/utils/linux/traydock/libtray.c 2011-01-28 14:21:21 UTC (rev 12286) +++ trunk/amsn/utils/linux/traydock/libtray.c 2011-01-29 16:19:29 UTC (rev 12287) @@ -174,6 +174,14 @@ (unsigned char *)tray_name, strlen(tray_name)+1); XStoreName(display, _GetSystemTray(), tray_name); + + XClassHint* classHint = XAllocClassHint(); + if(classHint){ + classHint->res_name = "amsn-window"; //TODO: Change + classHint->res_class = "amsn-wm_class"; // those names? + } + XSetClassHint(display, _GetSystemTray(), classHint); + XFree(classHint); } /* Draw the icon */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |