summaryrefslogtreecommitdiffstats
path: root/unix/tx
diff options
context:
space:
mode:
Diffstat (limited to 'unix/tx')
-rw-r--r--unix/tx/TXWindow.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/unix/tx/TXWindow.cxx b/unix/tx/TXWindow.cxx
index 4bab2d9b..2b535df8 100644
--- a/unix/tx/TXWindow.cxx
+++ b/unix/tx/TXWindow.cxx
@@ -288,7 +288,14 @@ void TXWindow::toplevel(const char* name, TXDeleteWindowCallback* dwc_,
void TXWindow::setName(const char* name)
{
- XStoreName(dpy, win(), name);
+ XClassHint classHint;
+ XGetClassHint(dpy, win(), &classHint);
+ XFree(classHint.res_name);
+ classHint.res_name = (char*)name;
+ XSetClassHint(dpy, win(), &classHint);
+ XFree(classHint.res_class);
+ XStoreName(dpy, win(), name);
+ XSetIconName(dpy, win(), name);
}
void TXWindow::setMaxSize(int w, int h)