diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | src/SystemTray.cc | 6 |
2 files changed, 7 insertions, 2 deletions
@@ -48,3 +48,6 @@ Makefile.in | |||
48 | /util/fluxbox-generate_menu | 48 | /util/fluxbox-generate_menu |
49 | /util/startfluxbox | 49 | /util/startfluxbox |
50 | /version.h | 50 | /version.h |
51 | |||
52 | # off source build directory | ||
53 | build | ||
diff --git a/src/SystemTray.cc b/src/SystemTray.cc index 1c88836..af534f6 100644 --- a/src/SystemTray.cc +++ b/src/SystemTray.cc | |||
@@ -599,8 +599,10 @@ 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 | std::unique_ptr<XClassHint, int(*)(void*)> | 602 | auto deleter = [](XClassHint *x){if(x) XFree(x);}; |
603 | xclasshint(XAllocClassHint(), XFree); | 603 | |
604 | std::unique_ptr<XClassHint, decltype(deleter)> | ||
605 | xclasshint(XAllocClassHint(), deleter); | ||
604 | 606 | ||
605 | if(XGetClassHint(Fluxbox::instance()->display(), | 607 | if(XGetClassHint(Fluxbox::instance()->display(), |
606 | i->window(), xclasshint.get())) | 608 | i->window(), xclasshint.get())) |