diff options
-rw-r--r-- | src/SystemTray.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/SystemTray.cc b/src/SystemTray.cc index 4b2cf56..a5fcc79 100644 --- a/src/SystemTray.cc +++ b/src/SystemTray.cc | |||
@@ -592,7 +592,11 @@ static int client_to_ordinal(const std::vector<std::string> left, | |||
592 | const std::vector<std::string> right, | 592 | const std::vector<std::string> right, |
593 | TrayWindow *i) { | 593 | TrayWindow *i) { |
594 | 594 | ||
595 | std::unique_ptr<XClassHint> xclasshint (XAllocClassHint()); | 595 | auto Xdeleter = [](XClassHint *x){XFree(x);}; |
596 | |||
597 | std::unique_ptr<XClassHint, decltype(Xdeleter)> | ||
598 | xclasshint (XAllocClassHint(), Xdeleter); | ||
599 | |||
596 | if(XGetClassHint(Fluxbox::instance()->display(), | 600 | if(XGetClassHint(Fluxbox::instance()->display(), |
597 | i->window(), xclasshint.get()) != BadWindow) | 601 | i->window(), xclasshint.get()) != BadWindow) |
598 | { | 602 | { |