summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2008-12-29 17:57:55 +0100
committerJulien Danjou <julien@danjou.info>2008-12-29 18:00:08 +0100
commitc4d34e7d9ecf537e95c44b3de0861ead606befa9 (patch)
tree5947643fb137ad7564acaa6f298f07b8093b17f0
parent6cf9c8d121888d688464a1551342de3f9d6206f6 (diff)
icccm: change class hint struct fields name
Signed-off-by: Julien Danjou <julien@danjou.info>
-rw-r--r--icccm/icccm.c6
-rw-r--r--icccm/xcb_icccm.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/icccm/icccm.c b/icccm/icccm.c
index f711deb..a1d7502 100644
--- a/icccm/icccm.c
+++ b/icccm/icccm.c
@@ -250,13 +250,13 @@ xcb_get_wm_class_reply(xcb_connection_t *c, xcb_get_property_cookie_t cookie,
}
prop->_reply = reply;
- prop->name = (char *) xcb_get_property_value(prop->_reply);
+ prop->instance_name = (char *) xcb_get_property_value(prop->_reply);
- int name_len = strlen(prop->name);
+ int name_len = strlen(prop->instance_name);
if(name_len == xcb_get_property_value_length(prop->_reply))
name_len--;
- prop->class = prop->name + name_len + 1;
+ prop->class_name = prop->instance_name + name_len + 1;
return 1;
}
diff --git a/icccm/xcb_icccm.h b/icccm/xcb_icccm.h
index 8a9e7be..745f920 100644
--- a/icccm/xcb_icccm.h
+++ b/icccm/xcb_icccm.h
@@ -304,9 +304,9 @@ void xcb_watch_wm_client_machine(xcb_property_handlers_t *prophs,
*/
typedef struct {
/** Instance name */
- char *name;
+ char *instance_name;
/** Class of application */
- char *class;
+ char *class_name;
/** Store reply to avoid memory allocation, should normally not be
used directly */
xcb_get_property_reply_t *_reply;