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)
Thomas Lübking thomas.luebking@gmail.com
1 files changed,
8 insertions(+),
0 deletions(-)
jump to
M
src/FbTk/FbWindow.cc
→
src/FbTk/FbWindow.cc
@@ -33,6 +33,7 @@ #include <X11/Xatom.h>
#include <cassert> #include <limits> +#include <string.h> namespace FbTk {@@ -262,6 +263,13 @@ }
void FbWindow::setName(const char *name) { XStoreName(display(), m_window, name); + Atom net_wm_name = XInternAtom(display(), "_NET_WM_NAME", False); + Atom utf8_string = XInternAtom(display(), "UTF8_STRING", False); + XChangeProperty(display(), m_window, + net_wm_name, utf8_string, 8, + PropModeReplace, + (unsigned char*)name, strlen(name)); + } void FbWindow::setWindowRole(const char *windowRole) {