logo       

[PATCH 2/11]: msg#00015

window-managers.icewm.devel

Subject: [PATCH 2/11]

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>
Google Custom Search

News | FAQ | advertise