Tags: +patch Mission accomplished. Patch now support
--x-class <string> to change the Window Class... Thanks, Greetings and nice Day/Evening Michelle Konzack -- ##################### Debian GNU/Linux Consultant ###################### Development of Intranet and Embedded Systems with Debian GNU/Linux itsystems@tdnet France EURL itsystems@tdnet UG (limited liability) Owner Michelle Konzack Owner Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de Linux-User #280138 with the Linux Counter, http://counter.li.org/
--- a/wmmixer.cc +++ b/wmmixer.cc @@ -236,6 +236,7 @@ {"back-color", 1, NULL, 'b'}, {"mix-device", 1, NULL, 'm'}, {"config-file", 1, NULL, 'c'}, + {"x-class", 1, NULL, 'x'}, {"scrollwheel",1, NULL, 'r'}, {NULL, 0, NULL, 0 }}; int i, opt_index = 0; @@ -260,7 +261,7 @@ } } - while ((i = getopt_long(argc, argv, "hvd:g:wasl:L:b:m:c:r:", long_opts, &opt_index)) != -1) + while ((i = getopt_long(argc, argv, "hvd:g:wasl:L:b:m:c:x:r:", long_opts, &opt_index)) != -1) { switch (i) { @@ -302,6 +303,9 @@ case 'c': snprintf(config_file_, CONFIGFILELEN -1, "%s", optarg); break; + case 'x': + xhandler_->setWindowClass(optarg); + break; case 'r': if(atoi(optarg)>0) wheel_scroll_ = atoi(optarg); @@ -417,7 +421,8 @@ std::cout << " -L, --led-highcolor <string> use the specified color for led shading" << std::endl; std::cout << " -b, --back-color <string> use the specified color for backgrounds" << std::endl; std::cout << " -m, --mix-device use specified device (rather than /dev/mixer)" << std::endl; - std::cout << " -c, --config-file use specified config file (rather than $HOME/.wmmixer)" << std::endl; + std::cout << " -c, --config-file <string> use specified config file (rather than $HOME/.wmmixer)" << std::endl; + std::cout << " -x, --x-class <string> use specified class (rather than WMMmixer)" << std::endl; std::cout << " -r, --scrollwheel <number> volume increase/decrease with mouse wheel (default: 2)" << std::endl; std::cout << "\nFor backward compatibility the following obsolete options are still supported:" << std::endl; std::cout << " -help display this help screen" << std::endl; --- a/xhandler.cc +++ b/xhandler.cc @@ -23,6 +23,8 @@ strcpy(ledcolor_high_name_, LEDCOLOR_HIGH); strcpy(backcolor_name_, BACKCOLOR); + strcpy(window_class_, CLASS); + button_state_ = 0; icon_list_ = NULL; } @@ -335,6 +337,12 @@ } //-------------------------------------------------------------------- +void XHandler::setWindowClass(char* arg) +{ + sprintf(window_class_, "%s", arg); +} + +//-------------------------------------------------------------------- void XHandler::setUnshaped() { is_ushape_ = 1; @@ -489,7 +497,7 @@ } classHint.res_name=NAME; - classHint.res_class=CLASS; + classHint.res_class = window_class_; XSetClassHint(display_default_, window_main_, &classHint); XSetClassHint(display_default_, window_icon_, &classHint);
signature.pgp
Description: Digital signature