minor stuff
This commit is contained in:
parent
245f8390a5
commit
a7dc6a68c9
2 changed files with 9 additions and 14 deletions
|
@ -22,7 +22,7 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// $Id: Basemenu.cc,v 1.28 2002/08/04 15:19:34 fluxgen Exp $
|
||||
// $Id: Basemenu.cc,v 1.29 2002/09/09 10:01:41 fluxgen Exp $
|
||||
|
||||
//use GNU extensions
|
||||
#ifndef _GNU_SOURCE
|
||||
|
@ -221,12 +221,11 @@ int Basemenu::insert(const char *label, Basemenu *submenu, int pos) {
|
|||
|
||||
int Basemenu::remove(unsigned int index) {
|
||||
if (index >= menuitems.size()) {
|
||||
#ifdef DEBUG
|
||||
#ifdef DEBUG
|
||||
std::cout << "Bad index (" << index << ") given to Basemenu::remove()"
|
||||
<< " -- should be between 0 and " << menuitems.size()-1
|
||||
<< " inclusive."
|
||||
<< std::endl;
|
||||
#endif
|
||||
<< " -- should be between 0 and " << menuitems.size()
|
||||
<< " inclusive." << std::endl;
|
||||
#endif // DEBUG
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// $Id: Workspace.cc,v 1.27 2002/09/08 19:38:48 fluxgen Exp $
|
||||
// $Id: Workspace.cc,v 1.28 2002/09/09 10:00:24 fluxgen Exp $
|
||||
|
||||
#include "Workspace.hh"
|
||||
|
||||
|
@ -164,10 +164,10 @@ int Workspace::removeWindow(FluxboxWindow *w) {
|
|||
w->getTransientFor()->setInputFocus();
|
||||
} else {
|
||||
FluxboxWindow *top = 0;
|
||||
if (stackingList.size()!=0)
|
||||
if (stackingList.size() != 0)
|
||||
top = stackingList.front();
|
||||
|
||||
if (!top || !top->setInputFocus()) {
|
||||
if (top == 0|| !top->setInputFocus()) {
|
||||
Fluxbox::instance()->setFocusedWindow(0); // set focused window to none
|
||||
XSetInputFocus(Fluxbox::instance()->getXDisplay(),
|
||||
screen->getToolbar()->getWindowID(),
|
||||
|
@ -210,11 +210,7 @@ void Workspace::showAll(void) {
|
|||
WindowStack::iterator it = stackingList.begin();
|
||||
WindowStack::iterator it_end = stackingList.end();
|
||||
for (; it != it_end; ++it) {
|
||||
if ((*it) == 0) {
|
||||
stackingList.erase(it);
|
||||
} else {
|
||||
(*it)->deiconify(False, False);
|
||||
}
|
||||
(*it)->deiconify(false, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue