summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/core/window.h2
-rw-r--r--src/window.cpp7
2 files changed, 6 insertions, 3 deletions
diff --git a/include/core/window.h b/include/core/window.h
index b0a4346..0cc6f59 100644
--- a/include/core/window.h
+++ b/include/core/window.h
@@ -333,7 +333,7 @@ class CompWindow :
Window id ();
Window frame ();
- char * resName ();
+ CompString resName ();
const CompRegion & region () const;
diff --git a/src/window.cpp b/src/window.cpp
index 1d69427..c43b3c5 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -4641,10 +4641,13 @@ CompWindow::frame ()
return priv->frame;
}
-char *
+CompString
CompWindow::resName ()
{
- return priv->resName;
+ if (priv->resName)
+ return priv->resName;
+
+ return CompString ();
}
int