all repos — fluxbox @ 6c5732899d6b406bd55f759f640cda2acd3f2182

custom fork of the fluxbox windowmanager

compile time option for gnome and net wm hints, updateds for screen constructor
fluxgen fluxgen
commit

6c5732899d6b406bd55f759f640cda2acd3f2182

parent

e111d9f44531054ac747c1401cadafbc9fb29a39

1 files changed, 30 insertions(+), 28 deletions(-)

jump to
M src/fluxbox.ccsrc/fluxbox.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.79 2002/10/23 22:00:46 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.80 2002/10/25 21:17:15 fluxgen Exp $ #include "fluxbox.hh"

@@ -40,12 +40,7 @@ #include "StringUtil.hh"

#include "Resource.hh" #include "XrmDatabaseHelper.hh" #include "AtomHandler.hh" -#include "Gnome.hh" -#include "Ewmh.hh" -#ifdef SLIT -#include "Slit.hh" -#endif // SLIT //Use GNU extensions #ifndef _GNU_SOURCE

@@ -56,6 +51,16 @@ #ifdef HAVE_CONFIG_H

#include "../config.h" #endif // HAVE_CONFIG_H +#ifdef SLIT +#include "Slit.hh" +#endif // SLIT +#ifdef USE_GNOME +#include "Gnome.hh" +#endif // USE_GNOME +#ifdef USE_NEWWMSPEC +#include "Ewmh.hh" +#endif //USE_NEWWMSPEC + // X headers #include <X11/Xlib.h> #include <X11/Xutil.h>

@@ -88,28 +93,20 @@ #ifdef HAVE_SYS_SELECT_H

#include <sys/select.h> #endif // HAVE_SYS_SELECT_H -#ifdef HAVE_SIGNAL_H -#include <signal.h> -#endif // HAVE_SIGNAL_H - -#ifdef HAVE_SYS_SIGNAL_H -# include <sys/signal.h> -#endif // HAVE_SYS_SIGNAL_H - #ifdef HAVE_SYS_STAT_H -# include <sys/types.h> -# include <sys/stat.h> +#include <sys/types.h> +#include <sys/stat.h> #endif // HAVE_SYS_STAT_H #ifdef TIME_WITH_SYS_TIME -# include <sys/time.h> -# include <time.h> +#include <sys/time.h> +#include <time.h> #else // !TIME_WITH_SYS_TIME -# ifdef HAVE_SYS_TIME_H -# include <sys/time.h> -# else // !HAVE_SYS_TIME_H -# include <time.h> -# endif // HAVE_SYS_TIME_H +#ifdef HAVE_SYS_TIME_H +#include <sys/time.h> +#else // !HAVE_SYS_TIME_H +#include <time.h> +#endif // HAVE_SYS_TIME_H #endif // TIME_WITH_SYS_TIME #ifdef HAVE_LIBGEN_H

@@ -324,7 +321,7 @@ cerr<<"Fatal! There can only one instance of fluxbox class."<<endl;

abort(); } - //setup system signals + //catch system signals SignalHandler *sigh = SignalHandler::instance(); sigh->registerHandler(SIGSEGV, this);

@@ -341,13 +338,18 @@ cursor.session = XCreateFontCursor(getXDisplay(), XC_left_ptr);

cursor.move = XCreateFontCursor(getXDisplay(), XC_fleur); cursor.ll_angle = XCreateFontCursor(getXDisplay(), XC_ll_angle); cursor.lr_angle = XCreateFontCursor(getXDisplay(), XC_lr_angle); - + + //singleton pointer + singleton = this; + // setup atom handlers +#ifdef USE_GNOME m_atomhandler.push_back(new Gnome()); // for gnome 1 atom support +#endif //USE_GNOME +#ifdef USE_NEWWMSPEC m_atomhandler.push_back(new Ewmh()); // for Extended window manager atom support +#endif // USE_NEWWMSPEC - //singleton pointer - singleton = this; grab(); setupConfigFiles();

@@ -384,7 +386,7 @@ for (i = 0; i < getNumberOfScreens(); i++) {

char scrname[128], altscrname[128]; sprintf(scrname, "session.screen%d", i); sprintf(altscrname, "session.Screen%d", i); - BScreen *screen = new BScreen(m_screen_rm, this, scrname, altscrname, i); + BScreen *screen = new BScreen(m_screen_rm, scrname, altscrname, i); if (! screen->isScreenManaged()) { delete screen; continue;