diff options
author | Peter Åstrand <astrand@cendio.se> | 2009-01-15 12:21:42 +0000 |
---|---|---|
committer | Peter Åstrand <astrand@cendio.se> | 2009-01-15 12:21:42 +0000 |
commit | c39e0789686690c534996ee60e0914bd88631c4e (patch) | |
tree | e6c25505e2eb06821212a1a3723946da2cd785a9 /unix/tx | |
parent | 6978fc0bdb218dd9ff5d3519a9d959306f3742dd (diff) | |
download | tigervnc-c39e0789686690c534996ee60e0914bd88631c4e.tar.gz tigervnc-c39e0789686690c534996ee60e0914bd88631c4e.zip |
Implemented support for DesktopName pseudo encoding, which allows
updating the desktop name on the fly.
Tested in ThinLinc since 2008-01-07.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3549 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix/tx')
-rw-r--r-- | unix/tx/TXWindow.cxx | 5 | ||||
-rw-r--r-- | unix/tx/TXWindow.h | 2 |
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. |