end = stackingList.end();
for (; it != end; ++it) {
BlackboxWindow *tmp = *it;
+ if (! (tmp->windowType() == BlackboxWindow::Type_Dialog ||
+ tmp->windowType() == BlackboxWindow::Type_Normal))
+ continue; // don't fallback to special windows
if (tmp && tmp->setInputFocus()) {
// we found our new focus target
newfocus = tmp;
for (; wit != end; ++wit) {
const BlackboxWindow* const curr = *wit;
- if (curr->isShaded()) continue;
+ if (curr->isShaded() && screen->getPlaceIgnoreShaded()) continue;
+ if (curr->isMaximizedFull() && screen->getPlaceIgnoreMaximized()) continue;
tmp.setRect(curr->frameRect().x(), curr->frameRect().y(),
curr->frameRect().width() + screen->getBorderWidth(),