all repos — openbox @ af8c5f51a5df9a092c8571ea3c50a965bb249d5a

openbox fork - make it a bit more like ryudo

use strcmp instead of collate, since collate is slower and we're only doing an == check
Dana Jansens danakj@orodu.net
commit

af8c5f51a5df9a092c8571ea3c50a965bb249d5a

parent

82bbaf4c41ecd7ab17d067c5c92a3f5878180ef4

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M plugins/placement/history.cplugins/placement/history.c

@@ -41,9 +41,9 @@

/* 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;