|
[PATCH 2/11]: msg#00015window-managers.icewm.devel
i'm allways confused with name/class order of window hints, so i changed the logic to match both name.class and class.name --- diff -urp old/src/wmframe.cc new/src/wmframe.cc --- old/src/wmframe.cc 2006-09-10 18:12:11.000000000 +0200 +++ new/src/wmframe.cc 2006-11-08 17:17:57.056395693 +0100 @@ -2190,10 +2190,16 @@ void YFrameWindow::getWindowOptions(Wind strcpy(both, h->res_name); strcat(both, "."); strcat(both, h->res_class); + wo = list->getWindowOption(both, false, remove); + if (!wo) { + strcpy(both, h->res_class); + strcat(both, "."); + strcat(both, h->res_name); + wo = list->getWindowOption(both, false, remove); + } + if (wo) WindowOptions::combineOptions(opt, *wo); + delete[] both; } - wo = both ? list->getWindowOption(both, false, remove) : 0; - if (wo) WindowOptions::combineOptions(opt, *wo); - delete[] both; } if (h->res_name && role) { char *both = new char[strlen(h->res_name) + 1 + @@ -2202,10 +2208,10 @@ void YFrameWindow::getWindowOptions(Wind strcpy(both, h->res_name); strcat(both, "."); strcat(both, role); + wo = list->getWindowOption(both, false, remove); + if (wo) WindowOptions::combineOptions(opt, *wo); + delete[] both; } - wo = both ? list->getWindowOption(both, false, remove) : 0; - if (wo) WindowOptions::combineOptions(opt, *wo); - delete[] both; } if (h->res_class) { wo = list->getWindowOption(h->res_class, false, remove); ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [PATCH 1/11] missings in default.h: 00015, Bert Wesarg |
|---|---|
| Next by Date: | [PATCH 3/11] send keyevents with icesh: 00015, Bert Wesarg |
| Previous by Thread: | [PATCH 1/11] missings in default.hi: 00015, Bert Wesarg |
| Next by Thread: | [PATCH 3/11] send keyevents with icesh: 00015, Bert Wesarg |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |