From 95122e911f63969ebc88cd3b47a0810636b9fc17 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 25 Jun 2003 12:01:23 +0000 Subject: setting class hint to fbrun, FbRun --- util/fbrun/FbRun.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc index 334414b..9c4d1d5 100644 --- a/util/fbrun/FbRun.cc +++ b/util/fbrun/FbRun.cc @@ -19,7 +19,7 @@ // 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 @@ FbRun::FbRun(int x, int y, size_t width): // 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); } -- cgit v0.11.2