Browse Source

fix compile error

rdb 13 years ago
parent
commit
65e555543a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/x11display/x11GraphicsWindow.cxx

+ 2 - 2
panda/src/x11display/x11GraphicsWindow.cxx

@@ -1080,9 +1080,9 @@ set_wm_properties(const WindowProperties &properties, bool already_mapped) {
   if (!x_wm_class.empty()) {
   if (!x_wm_class.empty()) {
     // Unless the user wanted to use his own WM_CLASS, of course.
     // Unless the user wanted to use his own WM_CLASS, of course.
     class_hints_p = XAllocClassHint();
     class_hints_p = XAllocClassHint();
-    class_hints_p->res_class = x_wm_class.c_str();
+    class_hints_p->res_class = (char*) x_wm_class.c_str();
     if (!x_wm_class_name.empty()) {
     if (!x_wm_class_name.empty()) {
-      class_hints_p->res_name = x_wm_class_name.c_str();
+      class_hints_p->res_name = (char*) x_wm_class_name.c_str();
     }
     }
 
 
   } else if (properties.get_undecorated() || properties.get_fullscreen()) {
   } else if (properties.get_undecorated() || properties.get_fullscreen()) {