summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-14 23:38:54 +0000
committerDana Jansens <danakj@orodu.net>2003-04-14 23:38:54 +0000
commite6d1ab217f53fcafe418a75ce184463c6e36e31b (patch)
tree0c9069cadc00e669616d26be091bd568939e6d6f /openbox/client.c
parentb486929d34cc634ffa94acdb77c60932fd2061e9 (diff)
fixes for handling char**s
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/openbox/client.c b/openbox/client.c
index b061b8f6..d2e75dc2 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -1134,10 +1134,9 @@ void client_update_class(Client *self)
if (data[1])
self->class = g_strdup(data[1]);
}
+ g_strfreev(data);
}
- g_strfreev(data);
-
if (PROP_GETS(self->window, wm_window_role, locale, &s))
self->role = g_strdup(s);
@@ -1587,7 +1586,7 @@ void client_fullscreen(Client *self, gboolean fs, gboolean savearea)
x = y = w = h = 0;
} else {
guint num;
- guint32 *dimensions;
+ gint32 *dimensions;
/* pick some fallbacks... */
x = screen_area(self->desktop)->x +
@@ -1598,7 +1597,7 @@ void client_fullscreen(Client *self, gboolean fs, gboolean savearea)
h = screen_area(self->desktop)->height / 2;
if (PROP_GETA32(self->window, openbox_premax, cardinal,
- &dimensions, &num)) {
+ (guint32**)&dimensions, &num)) {
if (num == 4) {
x = dimensions[0];
y = dimensions[1];