X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fsession.c;h=064779875d5027017443cdaf4a778f2786ed5233;hb=b9d47c49d6e4272e1cda7cec2c58e925cb610776;hp=0eb5c63a20c31f634cb54f21f514c345a2523ec8;hpb=6d1570210bd02a04090d36f7749784f733c8462f;p=chaz%2Fopenbox diff --git a/openbox/session.c b/openbox/session.c index 0eb5c63a..06477987 100644 --- a/openbox/session.c +++ b/openbox/session.c @@ -337,8 +337,6 @@ static gboolean session_save() fprintf(f, "\n\n", sm_id); for (it = stacking_list; it; it = g_list_next(it)) { - guint num; - gint32 *dimensions; gint prex, prey, prew, preh; ObClient *c; gchar *t; @@ -358,15 +356,19 @@ static gboolean session_save() prey = c->area.y; prew = c->area.width; preh = c->area.height; - if (PROP_GETA32(c->window, openbox_premax, cardinal, - (guint32**)&dimensions, &num)) { - if (num == 4) { - prex = dimensions[0]; - prey = dimensions[1]; - prew = dimensions[2]; - preh = dimensions[3]; - } - g_free(dimensions); + if (c->fullscreen) { + prex = c->pre_fullscreen_area.x; + prey = c->pre_fullscreen_area.x; + prew = c->pre_fullscreen_area.width; + preh = c->pre_fullscreen_area.height; + } + if (c->max_horz) { + prex = c->pre_max_area.x; + prew = c->pre_max_area.width; + } + if (c->max_vert) { + prey = c->pre_max_area.y; + preh = c->pre_max_area.height; } fprintf(f, "\n", c->sm_client_id);