diff --git a/src/SystemTray.cc b/src/SystemTray.cc index 6efb8126..1c88836b 100644 --- a/src/SystemTray.cc +++ b/src/SystemTray.cc @@ -599,13 +599,11 @@ static int client_to_ordinal(const std::vector left, // based on the parsed order list and a given window returns an // ordinal used to sort the tray icons. - auto Xdeleter = [](XClassHint *x){XFree(x);}; - - std::unique_ptr - xclasshint (XAllocClassHint(), Xdeleter); + std::unique_ptr + xclasshint(XAllocClassHint(), XFree); if(XGetClassHint(Fluxbox::instance()->display(), - i->window(), xclasshint.get()) != BadWindow) + i->window(), xclasshint.get())) { std::string classname(xclasshint.get()->res_class);