summaryrefslogtreecommitdiffstats
path: root/unix/tx
diff options
context:
space:
mode:
Diffstat (limited to 'unix/tx')
-rw-r--r--unix/tx/TXWindow.cxx5
-rw-r--r--unix/tx/TXWindow.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/unix/tx/TXWindow.cxx b/unix/tx/TXWindow.cxx
index 6d211beb..4bab2d9b 100644
--- a/unix/tx/TXWindow.cxx
+++ b/unix/tx/TXWindow.cxx
@@ -286,6 +286,11 @@ void TXWindow::toplevel(const char* name, TXDeleteWindowCallback* dwc_,
addEventMask(StructureNotifyMask);
}
+void TXWindow::setName(const char* name)
+{
+ XStoreName(dpy, win(), name);
+}
+
void TXWindow::setMaxSize(int w, int h)
{
sizeHints.flags |= PMaxSize;
diff --git a/unix/tx/TXWindow.h b/unix/tx/TXWindow.h
index 5ada181b..45ee28fb 100644
--- a/unix/tx/TXWindow.h
+++ b/unix/tx/TXWindow.h
@@ -82,6 +82,8 @@ public:
void setGeometry(const char* geom, int x, int y, int w, int h);
+ void setName(const char* name);
+
// setTransientFor() tells the window manager that this window is "owned" by
// the given window. The window manager can use this information as it sees
// fit.