diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-06-27 16:20:14 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2016-07-01 17:40:47 (GMT) |
commit | 666e7b0337220d781a1b0bbbb0e33b0212025752 (patch) | |
tree | de805932c2a360dce6ca726e787e71d4f5cd90b3 /src/FbTk | |
parent | 475e966f192be938c84e8b3492c392671b276985 (diff) | |
download | fluxbox-666e7b0337220d781a1b0bbbb0e33b0212025752.zip fluxbox-666e7b0337220d781a1b0bbbb0e33b0212025752.tar.bz2 |
add _NET_WM_NAME to FbWindow::setName
since fluxbox is a f**** WM it should be able to use f**** NETWM hints
in its toolkit ;-)
CCBUG: 702
(does not fix input)
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/FbWindow.cc | 8 |
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 | ||
37 | namespace FbTk { | 38 | namespace FbTk { |
38 | 39 | ||
@@ -262,6 +263,13 @@ void FbWindow::setBorderWidth(unsigned int size) { | |||
262 | 263 | ||
263 | void FbWindow::setName(const char *name) { | 264 | void 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 | ||
267 | void FbWindow::setWindowRole(const char *windowRole) { | 275 | void FbWindow::setWindowRole(const char *windowRole) { |