diff options
-rw-r--r-- | src/SystemTray.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/SystemTray.cc b/src/SystemTray.cc index 6efb812..1c88836 100644 --- a/src/SystemTray.cc +++ b/src/SystemTray.cc | |||
@@ -599,13 +599,11 @@ static int client_to_ordinal(const std::vector<std::string> left, | |||
599 | // based on the parsed order list and a given window returns an | 599 | // based on the parsed order list and a given window returns an |
600 | // ordinal used to sort the tray icons. | 600 | // ordinal used to sort the tray icons. |
601 | 601 | ||
602 | auto Xdeleter = [](XClassHint *x){XFree(x);}; | 602 | std::unique_ptr<XClassHint, int(*)(void*)> |
603 | 603 | xclasshint(XAllocClassHint(), XFree); | |
604 | std::unique_ptr<XClassHint, decltype(Xdeleter)> | ||
605 | xclasshint (XAllocClassHint(), Xdeleter); | ||
606 | 604 | ||
607 | if(XGetClassHint(Fluxbox::instance()->display(), | 605 | if(XGetClassHint(Fluxbox::instance()->display(), |
608 | i->window(), xclasshint.get()) != BadWindow) | 606 | i->window(), xclasshint.get())) |
609 | { | 607 | { |
610 | std::string classname(xclasshint.get()->res_class); | 608 | std::string classname(xclasshint.get()->res_class); |
611 | 609 | ||