if (win->isDesktop()) {
desktopWindowList.push_back(win->getFrameWindow());
- } else if (win->isNormal()) {
+ } else { // if (win->isNormal()) {
// don't list desktop windows as managed windows
windowList.push_back(win);
updateClientList();
break;
}
assert(it != end); // the window wasnt a desktop window?
- } else if (w->isNormal()) {
+ } else { // if (w->isNormal()) {
// we don't list desktop windows as managed windows
windowList.remove(w);
updateClientList();