diff --git a/src/Xutil.cc b/src/Xutil.cc index 2ef93155..68432a3d 100644 --- a/src/Xutil.cc +++ b/src/Xutil.cc @@ -97,18 +97,15 @@ FbTk::FbString getWMClassName(Window win) { if (XGetClassHint(FbTk::App::instance()->display(), win, &ch) == 0) { fbdbg<<"Xutil: Failed to read class hint!"<(ch.res_name); XFree(ch.res_name); ch.res_name = 0; - } else - instance_name = ""; + } } return instance_name; @@ -122,7 +119,6 @@ FbTk::FbString getWMClassClass(Window win) { if (XGetClassHint(FbTk::App::instance()->display(), win, &ch) == 0) { fbdbg<<"Xutil: Failed to read class hint!"<(ch.res_class); XFree(ch.res_class); ch.res_class = 0; - } else - class_name = ""; + } } return class_name;