From 666e7b0337220d781a1b0bbbb0e33b0212025752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Mon, 27 Jun 2016 18:20:14 +0200 Subject: 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) --- src/FbTk/FbWindow.cc | 8 ++++++++ 1 file changed, 8 insertions(+) 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 @@ #include #include +#include namespace FbTk { @@ -262,6 +263,13 @@ void FbWindow::setBorderWidth(unsigned int size) { 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) { -- cgit v0.11.2