all repos — fluxbox @ 666e7b0337220d781a1b0bbbb0e33b0212025752

custom fork of the fluxbox windowmanager

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
commit

666e7b0337220d781a1b0bbbb0e33b0212025752

parent

475e966f192be938c84e8b3492c392671b276985

1 files changed, 8 insertions(+), 0 deletions(-)

jump to
M src/FbTk/FbWindow.ccsrc/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) {