]> Dogcows Code - chaz/openbox/blobdiff - src/client.cc
almost done the ustring conversion
[chaz/openbox] / src / client.cc
index 0fc485c8eec30aa533801761d9dedb0fe8865e5a..cdef1f94667b6f9c597783a97947e756965327f6 100644 (file)
@@ -531,15 +531,15 @@ void Client::updateClass()
 
   if (property->get(_window, otk::Property::wm_class,
                     otk::Property::ascii, &num, &v)) {
-    if (num > 0) _app_name = v[0];
-    if (num > 1) _app_class = v[1];
+    if (num > 0) _app_name = v[0].c_str();
+    if (num > 1) _app_class = v[1].c_str();
   }
 
   v.clear();
   num = 1;
   if (property->get(_window, otk::Property::wm_window_role,
                     otk::Property::ascii, &num, &v)) {
-    if (num > 0) _role = v[0];
+    if (num > 0) _role = v[0].c_str();
   }
 }
 
This page took 0.022921 seconds and 4 git commands to generate.