char *
xrandr_geteventname(XEvent *e)
{
- char *name = NULL;
+ char *name = NULL;
switch(e->type - xrandr_eventbase) {
case RRScreenChangeNotify:
if (window_name_enabled || title_name_enabled ||
title_class_enabled)
bar_update();
-
return;
}
struct quirk *qp;
DNPRINTF(SWM_D_QUIRK, "setquirk: enter %s:%s [%lu]\n", class, name,
- quirk);
+ quirk);
TAILQ_FOREACH(qp, &quirks, entry) {
if (!strcmp(qp->class, class) && !strcmp(qp->name, name)) {
focus_prev(win);
- XFree(win->hints);
+ if (win->hints) {
+ XFree(win->hints);
+ win->hints = NULL;
+ }
TAILQ_REMOVE(&win->ws->winlist, win, entry);
TAILQ_INSERT_TAIL(&win->ws->unmanagedlist, win, entry);