aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/FbWindow.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index 357a26f..b2347f3 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -33,6 +33,7 @@
33 33
34#include <cassert> 34#include <cassert>
35#include <limits> 35#include <limits>
36#include <string.h>
36 37
37namespace FbTk { 38namespace FbTk {
38 39
@@ -262,6 +263,13 @@ void FbWindow::setBorderWidth(unsigned int size) {
262 263
263void FbWindow::setName(const char *name) { 264void FbWindow::setName(const char *name) {
264 XStoreName(display(), m_window, name); 265 XStoreName(display(), m_window, name);
266 Atom net_wm_name = XInternAtom(display(), "_NET_WM_NAME", False);
267 Atom utf8_string = XInternAtom(display(), "UTF8_STRING", False);
268 XChangeProperty(display(), m_window,
269 net_wm_name, utf8_string, 8,
270 PropModeReplace,
271 (unsigned char*)name, strlen(name));
272
265} 273}
266 274
267void FbWindow::setWindowRole(const char *windowRole) { 275void FbWindow::setWindowRole(const char *windowRole) {