From: Dana Jansens Date: Sat, 1 Jun 2002 17:54:32 +0000 (+0000) Subject: sync with bb-cvs X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=1775e867c408bbea2b7f197c0c40b26e586e9ef1;p=chaz%2Fopenbox sync with bb-cvs --- diff --git a/src/Basemenu.cc b/src/Basemenu.cc index fa2f4b00..575147e6 100644 --- a/src/Basemenu.cc +++ b/src/Basemenu.cc @@ -40,6 +40,7 @@ extern "C" { } #include +#include using namespace std; #include "i18n.hh" diff --git a/src/Color.cc b/src/Color.cc index 7a36b03c..85f3ec19 100644 --- a/src/Color.cc +++ b/src/Color.cc @@ -25,13 +25,15 @@ # include "../config.h" #endif // HAVE_CONFIG_H -#include "Color.hh" -#include "BaseDisplay.hh" - extern "C" { #include } +#include + +#include "Color.hh" +#include "BaseDisplay.hh" + BColor::ColorCache BColor::colorcache; bool BColor::cleancache = false; diff --git a/src/GCCache.cc b/src/GCCache.cc index 941d67ef..57310a44 100644 --- a/src/GCCache.cc +++ b/src/GCCache.cc @@ -90,8 +90,6 @@ BGCCache::~BGCCache(void) { std::for_each(cache, cache + cache_total_size, PointerAssassin()); delete [] cache; delete [] contexts; - cache = 0; - contexts = 0; } @@ -116,6 +114,7 @@ BGCCacheContext *BGCCache::nextContext(unsigned int scr) { fprintf(stderr, "BGCCache: context fault!\n"); abort(); + return (BGCCacheContext*) 0; // not reached } diff --git a/src/Screen.cc b/src/Screen.cc index 8bdf9480..8779733c 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -66,8 +66,11 @@ extern "C" { #endif // HAVE_STDARG_H } +#include + #include #include +#include using std::string; #include "i18n.hh" @@ -1039,7 +1042,7 @@ void BScreen::changeWorkspaceID(unsigned int id) { if (blackbox->getFocusedWindow() && blackbox->getFocusedWindow()->getScreen() == this && - (! blackbox->getFocusedWindow()->isStuck())) { + ! blackbox->getFocusedWindow()->isStuck()) { current_workspace->setLastFocusedWindow(blackbox->getFocusedWindow()); blackbox->setFocusedWindow((BlackboxWindow *) 0); } diff --git a/src/Texture.cc b/src/Texture.cc index 716522f6..caab82e8 100644 --- a/src/Texture.cc +++ b/src/Texture.cc @@ -32,6 +32,8 @@ extern "C" { #endif } +#include + #include "Texture.hh" #include "BaseDisplay.hh" #include "Image.hh" diff --git a/src/Util.cc b/src/Util.cc index a97ffe50..bc685bfa 100644 --- a/src/Util.cc +++ b/src/Util.cc @@ -52,6 +52,8 @@ extern "C" { #include +#include + #include #include "Util.hh" diff --git a/src/Workspace.cc b/src/Workspace.cc index c21f3293..35b3b593 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -38,6 +38,8 @@ extern "C" { #endif // HAVE_STRING_H } +#include + #include #include @@ -506,26 +508,26 @@ bool Workspace::smartPlacement(Rect& win, const Rect& availableArea) { if (screen->getPlacementPolicy() == BScreen::RowSmartPlacement) { if(screen->getRowPlacementDirection() == BScreen::LeftRight) { if(screen->getColPlacementDirection() == BScreen::TopBottom) - sort(spaces.begin(), spaces.end(), rowLRTB); + std::sort(spaces.begin(), spaces.end(), rowLRTB); else - sort(spaces.begin(), spaces.end(), rowLRBT); + std::sort(spaces.begin(), spaces.end(), rowLRBT); } else { if(screen->getColPlacementDirection() == BScreen::TopBottom) - sort(spaces.begin(), spaces.end(), rowRLTB); + std::sort(spaces.begin(), spaces.end(), rowRLTB); else - sort(spaces.begin(), spaces.end(), rowRLBT); + std::sort(spaces.begin(), spaces.end(), rowRLBT); } } else { if(screen->getColPlacementDirection() == BScreen::TopBottom) { if(screen->getRowPlacementDirection() == BScreen::LeftRight) - sort(spaces.begin(), spaces.end(), colLRTB); + std::sort(spaces.begin(), spaces.end(), colLRTB); else - sort(spaces.begin(), spaces.end(), colRLTB); + std::sort(spaces.begin(), spaces.end(), colRLTB); } else { if(screen->getRowPlacementDirection() == BScreen::LeftRight) - sort(spaces.begin(), spaces.end(), colLRBT); + std::sort(spaces.begin(), spaces.end(), colLRBT); else - sort(spaces.begin(), spaces.end(), colRLBT); + std::sort(spaces.begin(), spaces.end(), colRLBT); } } diff --git a/src/blackbox.cc b/src/blackbox.cc index ce727aff..72bbf723 100644 --- a/src/blackbox.cc +++ b/src/blackbox.cc @@ -90,6 +90,8 @@ extern "C" { #endif // HAVE_LIBGEN_H } +#include + #include #include using std::string; diff --git a/src/main.cc b/src/main.cc index c374f694..c06543a1 100644 --- a/src/main.cc +++ b/src/main.cc @@ -62,8 +62,8 @@ static void showHelp(int exitval) { // print program usage and command line options printf(i18n(mainSet, mainUsage, "Openbox %s : (c) 2002 - 2002 Ben Jansens\n" - " 2001 - 2002 Sean 'Shaleh' Perry\n" - " 1997 - 2000, 2002 Brad Hughes\n\n" + " 2001 - 2002 Sean 'Shaleh' Perry\n" + " 1997 - 2000, 2002 Brad Hughes\n\n" " -display \t\tuse display connection.\n" " -rc \t\t\tuse alternate resource file.\n" " -menu \t\tuse alternate menu file.\n"