all repos — fluxbox @ 95122e911f63969ebc88cd3b47a0810636b9fc17

custom fork of the fluxbox windowmanager

setting class hint to fbrun, FbRun
fluxgen fluxgen
commit

95122e911f63969ebc88cd3b47a0810636b9fc17

parent

5a12f82a1e5c46eb523efad68fa9cb58da2f3168

1 files changed, 9 insertions(+), 1 deletions(-)

jump to
M util/fbrun/FbRun.ccutil/fbrun/FbRun.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbRun.cc,v 1.12 2003/06/24 10:22:42 fluxgen Exp $ +// $Id: FbRun.cc,v 1.13 2003/06/25 12:01:23 fluxgen Exp $ #include "FbRun.hh"

@@ -58,6 +58,14 @@ m_win.setCursor(m_cursor);

// setting nomaximize in local resize resize(width, m_font.height()); FbTk::EventManager::instance()->registerEventHandler(*this, m_win.window()); + // setup class name + XClassHint *class_hint = XAllocClassHint(); + if (class_hint == 0) + throw string("Out of memory"); + class_hint->res_name = "fbrun"; + class_hint->res_class = "FbRun"; + XSetClassHint(m_display, m_win.window(), class_hint); + XFree(class_hint); }