diff --git a/src/x11.cc b/src/x11.cc index 378509e3..5deacd52 100644 --- a/src/x11.cc +++ b/src/x11.cc @@ -676,10 +676,11 @@ static void init_window(lua::state &l __attribute__((unused)), bool own) { XClassHint classHint; // class_name must be a named local variable, so that c_str() remains - // valid until we call XmbSetWMProperties() or XSetClassHint. We use const_cast because, - // for whatever reason, res_name is not declared as const char *. - // XmbSetWMProperties hopefully doesn't modify the value (hell, even their - // own example app assigns a literal string constant to the field) + // valid until we call XmbSetWMProperties() or XSetClassHint. We use + // const_cast because, for whatever reason, res_name is not declared as + // const char *. XmbSetWMProperties hopefully doesn't modify the value + // (hell, even their own example app assigns a literal string constant to + // the field) const std::string &class_name = own_window_class.get(l); classHint.res_name = const_cast(class_name.c_str());