summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp7
1 files changed, 5 insertions, 2 deletions
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