- DNPRINTF(SWM_D_CLASS, "manage_window: class: %s, instance: %s, "
- "name: %s\n",
- win->ch.class_name, win->ch.instance_name, name);
-
- /* java is retarded so treat it special */
- if (strstr(win->ch.instance_name, "sun-awt")) {
- DNPRINTF(SWM_D_CLASS, "manage_window: java window "
- "detected.\n");
- win->java = 1;
- }
-
- TAILQ_FOREACH(qp, &quirks, entry) {
- if (regexec(&qp->regex_class, win->ch.class_name, 0,
- NULL, 0) == 0 && regexec(&qp->regex_instance,
- win->ch.instance_name, 0, NULL, 0) == 0 &&
- regexec(&qp->regex_name, name, 0, NULL, 0) == 0) {
- DNPRINTF(SWM_D_CLASS, "manage_window: matched "
- "quirk: %s:%s:%s mask: %#lx\n", qp->class,
- qp->instance, qp->name, qp->quirk);
- if (qp->quirk & SWM_Q_FLOAT)
- win->floating = 1;
- win->quirks = qp->quirk;
- }