diff --git a/src/x11.cc b/src/x11.cc index deec6cbdf..f44d5d52d 100644 --- a/src/x11.cc +++ b/src/x11.cc @@ -33,6 +33,9 @@ #include "x11.h" #include +#include +#undef min +#undef max #include #include "common.h" @@ -314,6 +317,8 @@ void update_x11_resource_db(bool first_run) { XrmDestroyDatabase(db); } + // https://github.com/dunst-project/dunst/blob/master/src/x11/x.c#L499 + display->db = NULL; // should be new or deleted db = XrmGetStringDatabase((const char *)prop.value); XrmSetDatabase(display, db); }