#endif // HAVE_CONFIG_H
extern "C" {
+#ifdef HAVE_STDIO_H
+# include <stdio.h>
+#endif // HAVE_STDIO_H
+
#ifdef HAVE_UNISTD_H
# include <sys/types.h>
# include <unistd.h>
case Action::execute:
execCommand(it->string());
return;
+
+ default:
+ break;
}
// these actions require an active window
case Action::toggleshade:
window->shade(! window->shaded());
return;
+
+ default:
+ assert(false); // unhandled action type!
+ break;
}
}
}
WindowList::const_iterator target = _active;
+ string classname;
+ if (sameclass && target != _clients.end())
+ classname = (*target)->appClass();
+
if (target == _clients.end())
target = _clients.begin();
} while (target == _clients.end() ||
(*target)->iconic() ||
(! alldesktops && (*target)->desktop() != _active_desktop) ||
- (sameclass && _active != _clients.end() &&
- (*target)->appClass() != (*_active)->appClass()));
+ (sameclass && ! classname.empty() &&
+ (*target)->appClass() != classname));
if (target != _clients.end())
(*target)->focus();