summaryrefslogtreecommitdiff
path: root/src/propertywriter.cpp
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-07-31 01:38:44 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-07-31 01:38:44 +0800
commit29710f88421e63afbf9f756fd23b82fb9de2b739 (patch)
treee278a6bf1341cddeb7040fcf96f23bda217293f6 /src/propertywriter.cpp
parentda6c8cf40335130e559101d3f4bb22bf5a56a7ff (diff)
downloadunity-window-decorator-29710f88421e63afbf9f756fd23b82fb9de2b739.tar.gz
unity-window-decorator-29710f88421e63afbf9f756fd23b82fb9de2b739.tar.bz2
Handle property data types other than XA_CARDINAL and XA_STRING. Fixes window hints not being written for other data types, such as XA_WINDOW which is used by compiztoolbox for switcher background drawing
Diffstat (limited to 'src/propertywriter.cpp')
-rw-r--r--src/propertywriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/propertywriter.cpp b/src/propertywriter.cpp
index 7087aae..9c0eea4 100644
--- a/src/propertywriter.cpp
+++ b/src/propertywriter.cpp
@@ -57,7 +57,7 @@ PropertyWriter::updateProperty (Window id,
int count = 0;
- if (type == XA_CARDINAL)
+ if (type != XA_STRING)
{
long int data[propertyData.size ()];
@@ -84,7 +84,7 @@ PropertyWriter::updateProperty (Window id,
PropModeReplace, (unsigned char *)data,
propertyData.size ());
}
- else if (type == XA_STRING)
+ else
{
char * data[propertyData.size ()];
XTextProperty prop;