Unified · Split
| @@ -328,7 +328,8 @@ screeninit(void) · 327 unmodified lines | ||
| 328 | 328 | /* |
| 329 | 329 | * set up property as required by ICCCM |
| 330 | 330 | */ |
| 331 | − name.value = (uchar*)"drawterm"; | |
| 331 | + if((name.value = getenv("WM_NAME")) == nil) | |
| 332 | + name.value = (uchar*)"drawterm"; | |
| 332 | 333 | name.encoding = XA_STRING; |
| 333 | 334 | name.format = 8; |
| 334 | 335 | name.nitems = strlen((char*)name.value); |
| @@ -341,7 +342,8 @@ screeninit(void) · 6 unmodified lines | ||
| 341 | 342 | hints.icon_pixmap = icon_pixmap; |
| 342 | 343 | |
| 343 | 344 | classhints.res_name = "drawterm"; |
| 344 | − classhints.res_class = "Drawterm"; | |
| 345 | + if((classhints.res_class = getenv("WM_CLASS")) == nil) | |
| 346 | + classhints.res_class = "Drawterm"; | |
| 345 | 347 | argv[0] = "drawterm"; |
| 346 | 348 | argv[1] = nil; |
| 347 | 349 | XSetWMProperties(xdisplay, xdrawable, |