const int Workspace::addWindow(OpenboxWindow *w, Bool place) {
if (! w) return -1;
- if (place) placeWindow(*w);
-
w->setWorkspace(id);
w->setWindowNumber(_windows.size());
raiseWindow(w);
+ if (place) placeWindow(*w);
+
return w->getWindowNumber();
}
_zorder.empty() || // click focus but no windows
!_zorder.front()->setInputFocus()) { // tried window, but wont focus
screen.getOpenbox().focusWindow((OpenboxWindow *) 0);
- XSetInputFocus(screen.getOpenbox().getXDisplay(),
- PointerRoot, None, CurrentTime);
}
}
}