X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.c;h=d1d235cee87c29dc0da5d6e5c87bf0c8806ce7a6;hb=5898c685301cb10e9c7408f6ad019a5ae704e5ce;hp=b061b8f6eee493517fa8f1502876765c6205c10f;hpb=3175986d3ae670a9023fc464a0311c278973873e;p=chaz%2Fopenbox diff --git a/openbox/client.c b/openbox/client.c index b061b8f6..d1d235ce 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); @@ -1314,7 +1313,7 @@ void client_calc_layer(Client *self) for (it = self->group->members; it; it = it->next) if (it->data != self && ((Client*)it->data)->transient_for != TRAN_GROUP) { - self = self->transient_for; + self = it->data; break; } } @@ -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];