I have updated the patch to address the concerns mentioned. http://files.looncraz.net/deskbarCleanupWindowTitles.patchI used the method I favored for handling path names, including preserving leading text, and also for detecting Team names at the end of the window title, such as is the case with WebPositive.
Examples: (I use a large font, so these are shorter than you'll likely see...)
Window Title: "/Haiku-Shared/CODE/haiku/unmod/haiku/src/apps/deskbar/TeamMenu.cpp"
Old Way: "/Haiku...enu.cpp" New Way: "TeamMenu.cpp" Window Title: "Terminal 1: apps: --" Old Way: "Termin...pps: --" New Way: "1: apps --" Window Title: "Welcome to Haiku! - WebPositive Old Way: "Welco...ositive" New Way: "Welco...Haiku!" I think the new way is much better ;-) I think I caught all the style issues, but I'm sure I'm wrong. --The loon