X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fplacement%2Fhistory.c;h=f2b4ea632a77790eadb57eb4592f55e91ff12c1d;hb=276b2be581c6cb138b439537761ff2ca42201805;hp=716487b6e76a9d0dd49fa50b345e21dbe4a40f08;hpb=d1e355de2c6aae38cea3cdc0e0b902ea2b194e86;p=chaz%2Fopenbox diff --git a/plugins/placement/history.c b/plugins/placement/history.c index 716487b6..f2b4ea63 100644 --- a/plugins/placement/history.c +++ b/plugins/placement/history.c @@ -41,9 +41,9 @@ static struct HistoryItem *history_find(const char *name, const char *class, /* find the client */ for (it = history_list; it != NULL; it = it->next) { hi = it->data; - if (!g_utf8_collate(hi->name, name) && - !g_utf8_collate(hi->class, class) && - !g_utf8_collate(hi->role, role)) + if (!strcmp(hi->name, name) && + !strcmp(hi->class, class) && + !strcmp(hi->role, role)) return hi; } return NULL; @@ -58,7 +58,7 @@ gboolean place_history(Client *c) if (hi && !(hi->flags & PLACED)) { hi->flags |= PLACED; - if (ob_state != State_Starting) { + if (ob_state != OB_STATE_STARTING) { if (hi->flags & HAVE_POSITION || hi->flags & HAVE_SIZE) { if (hi->flags & HAVE_POSITION) { @@ -77,7 +77,7 @@ gboolean place_history(Client *c) w = c->area.width; h = c->area.height; } - client_configure(c, Corner_TopLeft, x, y, w, h, + client_configure(c, OB_CORNER_TOPLEFT, x, y, w, h, TRUE, TRUE); } if (hi->flags & HAVE_DESKTOP) {