Jump to content

Help with "make" for fluxspace


bvc
 Share

Recommended Posts

I'm trying to install fluxspace and get stuck with "make". I have no idea what it's asking for. Any help appreciated! Sorry it's so long....want to give all info.

{root 12:09 PM fluxspace-0.0.2}>./configure

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking for sed... sed

checking for gcc... gcc

checking for C compiler default output... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables... 

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ANSI C... none needed

checking for style of include used by make... GNU

checking dependency style of gcc... gcc3

checking for g++... g++

checking whether we are using the GNU C++ compiler... yes

checking whether g++ accepts -g... yes

checking dependency style of g++... gcc3

checking for a BSD-compatible install... /usr/bin/install -c

checking for swig... /usr/bin/swig

checking build system type... i686-pc-linux-gnu

checking host system type... i686-pc-linux-gnu

checking for ld used by GCC... /usr/bin/ld

checking if the linker (/usr/bin/ld) is GNU ld... yes

checking for /usr/bin/ld option to reload object files... -r

checking for BSD-compatible nm... /usr/bin/nm -B

checking for a sed that does not truncate output... /bin/sed

checking whether ln -s works... yes

checking how to recognise dependent libraries... pass_all

checking command to parse /usr/bin/nm -B output... ok

checking how to run the C preprocessor... gcc -E

checking for egrep... grep -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking dlfcn.h usability... yes

checking dlfcn.h presence... yes

checking for dlfcn.h... yes

checking for ranlib... ranlib

checking for strip... strip

checking for objdir... .libs

checking for gcc option to produce PIC... -fPIC

checking if gcc PIC flag -fPIC works... yes

checking if gcc static flag -static works... no

checking if gcc supports -c -o file.o... yes

checking if gcc supports -c -o file.lo... yes

checking if gcc supports -fno-rtti -fno-exceptions... yes

checking whether the linker (/usr/bin/ld) supports shared libraries... yes

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking dynamic linker characteristics... GNU/Linux ld.so

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... yes

checking whether -lc should be explicitly linked in... no

creating libtool

checking for ANSI C header files... (cached) yes

checking ctype.h usability... yes

checking ctype.h presence... yes

checking for ctype.h... yes

checking fcntl.h usability... yes

checking fcntl.h presence... yes

checking for fcntl.h... yes

checking libgen.h usability... yes

checking libgen.h presence... yes

checking for libgen.h... yes

checking locale.h usability... yes

checking locale.h presence... yes

checking for locale.h... yes

checking process.h usability... no

checking process.h presence... no

checking for process.h... no

checking signal.h usability... yes

checking signal.h presence... yes

checking for signal.h... yes

checking stdio.h usability... yes

checking stdio.h presence... yes

checking for stdio.h... yes

checking time.h usability... yes

checking time.h presence... yes

checking for time.h... yes

checking for unistd.h... (cached) yes

checking sys/param.h usability... yes

checking sys/param.h presence... yes

checking for sys/param.h... yes

checking sys/select.h usability... yes

checking sys/select.h presence... yes

checking for sys/select.h... yes

checking for sys/stat.h... (cached) yes

checking sys/time.h usability... yes

checking sys/time.h presence... yes

checking for sys/time.h... yes

checking for sys/types.h... (cached) yes

checking sys/wait.h usability... yes

checking sys/wait.h presence... yes

checking for sys/wait.h... yes

checking whether time.h and sys/time.h may both be included... yes

checking for setlocale... yes

checking for sigaction... yes

checking for strftime... yes

checking for X... libraries /usr/X11R6/lib, headers 

checking for gethostbyname... yes

checking for connect... yes

checking for remove... yes

checking for shmat... yes

checking for IceConnectionNumber in -lICE... yes

checking for XOpenDisplay in -lX11... yes

checking for pixmap support... yes

checking for dlopen in -ldl... yes

checking for TT_Init_FreeType in -lttf... no

checking for imlib_create_image in -lImlib2... yes

checking for python... /usr/bin/python

checking for python version... 2.2

checking for python platform... linux-i386

checking for python >= 2.2... okay

checking for headers required to compile python extensions... found

checking for Py_Initialize in -lpython2.2... yes

checking for ANSI C header files... (cached) yes

checking malloc.h usability... yes

checking malloc.h presence... yes

checking for malloc.h... yes

checking for an ANSI C-conforming const... yes

checking whether time.h and sys/time.h may both be included... (cached) yes

checking whether struct tm is in sys/time.h or time.h... time.h

checking for select... yes

checking for strstr... yes

configure: creating ./config.status

config.status: creating version.h

config.status: creating Makefile

config.status: executing depfiles commands

{root 12:09 PM fluxspace-0.0.2}

 

{root 12:09 PM fluxspace-0.0.2}>make          

if /bin/sh ./libtool --mode=compile g++ -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE="fluxspace" -DVERSION="0.0.2" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_CTYPE_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_LOCALE_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_STDIO_H=1 -DHAVE_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_WAIT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SETLOCALE=1 -DHAVE_SIGACTION=1 -DHAVE_STRFTIME=1 -DHAVE_LIBIMLIB2=1 -DPIXMAP_SUPPORT=1 -DBACKING_STORE=1 -DSTDC_HEADERS=1 -DHAVE_MALLOC_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SELECT=1 -DHAVE_STRSTR=1  -I. -I. -I/usr/include/python2.2    -O2 -Wall  -MT BaseDisplay.lo -MD -MP -MF ".deps/BaseDisplay.Tpo" 

 -c -o BaseDisplay.lo `test -f 'BaseDisplay.cc' || echo './'`BaseDisplay.cc; 

then mv ".deps/BaseDisplay.Tpo" ".deps/BaseDisplay.Plo"; 

else rm -f ".deps/BaseDisplay.Tpo"; exit 1; 

fi

mkdir .libs

g++ -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE="fluxspace" -DVERSION="0.0.2" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_CTYPE_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_LOCALE_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_STDIO_H=1 -DHAVE_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_WAIT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SETLOCALE=1 -DHAVE_SIGACTION=1 -DHAVE_STRFTIME=1 -DHAVE_LIBIMLIB2=1 -DPIXMAP_SUPPORT=1 -DBACKING_STORE=1 -DSTDC_HEADERS=1 -DHAVE_MALLOC_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SELECT=1 -DHAVE_STRSTR=1 -I. -I. -I/usr/include/python2.2 -O2 -Wall -MT BaseDisplay.lo -MD -MP -MF .deps/BaseDisplay.Tpo -c BaseDisplay.cc  -fPIC -DPIC -o .libs/BaseDisplay.lo

In file included from BaseDisplay.cc:41:

BaseDisplay.hh:119: parse error before `,' token

BaseDisplay.hh: In member function `const char* BaseDisplay::getXDisplayName() const':

BaseDisplay.hh:282: `display_name' undeclared (first use this function)

BaseDisplay.hh:282: (Each undeclared identifier is reported only once for each function it appears in.)

BaseDisplay.hh: In member function `const char* BaseDisplay::getApplicationName() const':

BaseDisplay.hh:284: `application_name' undeclared (first use this function)

BaseDisplay.cc: In constructor `BaseDisplay::BaseDisplay(const char*, const char*, bool)':

BaseDisplay.cc:179: class `BaseDisplay' does not have any field named `application_name'

make: *** [BaseDisplay.lo] Error 1

{root 12:09 PM fluxspace-0.0.2}>

 

 

BaseDisplay lines in Makefile

libfluxspace_la_SOURCES = BaseDisplay.cc BaseDisplay.hh 

                         FluxboxEvent.cc FluxboxEvent.hh 

                         FluxspaceDisplay.cc FluxspaceDisplay.hh 

                         LinkedList.cc LinkedList.hh 

                         MyPy.cc MyPy.hh 

                         PythonInterface.cc PythonInterface.hh 

                         FluxspaceInterface.cc FluxspaceInterface.hh 

                         Esetroot.cc Esetroot.hh 

                         fluxspace.i fluxspace.cc fluxspace.hh 

                         $(cxxwrapper)



am_libfluxspace_la_OBJECTS = BaseDisplay.lo FluxboxEvent.lo 

FluxspaceDisplay.lo LinkedList.lo MyPy.lo PythonInterface.lo 

FluxspaceInterface.lo Esetroot.lo fluxspace.lo $(am__objects_1)

libfluxspace_la_OBJECTS = $(am_libfluxspace_la_OBJECTS)

SCRIPTS = $(bin_SCRIPTS)





DEP_FILES = ./$(DEPDIR)/BaseDisplay.Plo 

./$(DEPDIR)/Esetroot.Plo 

./$(DEPDIR)/FluxboxEvent.Plo 

./$(DEPDIR)/FluxspaceDisplay.Plo 

./$(DEPDIR)/FluxspaceInterface.Plo 

./$(DEPDIR)/LinkedList.Plo ./$(DEPDIR)/MyPy.Plo 

./$(DEPDIR)/PythonInterface.Plo 

./$(DEPDIR)/fluxspace.Plo 

./$(DEPDIR)/fluxspace_wrap.Plo







distclean-compile:

-rm -f *.tab.c



include ./$(DEPDIR)/BaseDisplay.Plo

include ./$(DEPDIR)/Esetroot.Plo

include ./$(DEPDIR)/FluxboxEvent.Plo

include ./$(DEPDIR)/FluxspaceDisplay.Plo

include ./$(DEPDIR)/FluxspaceInterface.Plo

include ./$(DEPDIR)/LinkedList.Plo

include ./$(DEPDIR)/MyPy.Plo

include ./$(DEPDIR)/PythonInterface.Plo

include ./$(DEPDIR)/fluxspace.Plo

include ./$(DEPDIR)/fluxspace_wrap.Plo

 

 

BaseDisplay.cc

#ifndef   _GNU_SOURCE

#define   _GNU_SOURCE

#endif // _GNU_SOURCE



#ifdef    HAVE_CONFIG_H

#  include "../config.h"

#endif // HAVE_CONFIG_H



#include <X11/Xlib.h>

#include <X11/Xatom.h>

#include <X11/Xutil.h>

#include <X11/cursorfont.h>



#ifdef    SHAPE

#  include <X11/extensions/shape.h>

#endif // SHAPE



#include "BaseDisplay.hh"

#include "LinkedList.hh"



#ifdef    HAVE_FCNTL_H

#  include <fcntl.h>

#endif // HAVE_FCNTL_H



#ifdef    HAVE_STDIO_H

#  include <stdio.h>

#endif // HAVE_STDIO_H



#ifdef    STDC_HEADERS

#  include <stdlib.h>

#  include <string.h>

#endif // STDC_HEADERS



#ifdef    HAVE_UNISTD_H

#  include <sys/types.h>

#  include <unistd.h>

#endif // HAVE_UNISTD_H



#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



#ifndef   SA_NODEFER

#  ifdef   SA_INTERRUPT

#    define SA_NODEFER SA_INTERRUPT

#  else // !SA_INTERRUPT

#    define SA_NODEFER (0)

#  endif // SA_INTERRUPT

#endif // SA_NODEFER



#ifdef    HAVE_SYS_WAIT_H

#  include <sys/types.h>

#  include <sys/wait.h>

#endif // HAVE_SYS_WAIT_H



#if defined(HAVE_PROCESS_H) && defined(__EMX__)

#  include <process.h>

#endif //   HAVE_PROCESS_H             __EMX__





// X error handler to handle any and all X errors while the application is

// running

static Bool internal_error = False;



static bool verbose_signals = false;



BaseDisplay *base_display;



#ifdef    DEBUG

static int handleXErrors(Display *d, XErrorEvent *e)

{

   char errtxt[128];



   XGetErrorText(d, e->error_code, errtxt, 128);

   fprintf(stderr, "%s:  X error: %s(%d) opcodes %d/%dn  resource 0x%lxn",

                   base_display->getApplicationName(), errtxt, e->error_code,

                   e->request_code, e->minor_code, e->resourceid);

#else // !DEBUG

static int handleXErrors(Display *, XErrorEvent *e)

{

#endif // DEBUG



   if (internal_error)

       abort();



   return(False);

}





// signal handler to allow for proper and gentle shutdown



#ifndef   HAVE_SIGACTION

static RETSIGTYPE signalhandler(int sig)

{

#else //  HAVE_SIGACTION

static void signalhandler(int sig)

{

#endif // HAVE_SIGACTION



   static int re_enter = 0;



   switch (sig)

   {

     case SIGCHLD:



       int status;

       waitpid(-1, &status, WNOHANG | WUNTRACED);

     #ifndef   HAVE_SIGACTION

       // assume broken, braindead sysv signal semantics

       signal(SIGCHLD, (RETSIGTYPE (*)(int)) signalhandler);

     #endif // HAVE_SIGACTION



       break;



     default:



       if (base_display->handleSignal(sig))

       {

         #ifndef   HAVE_SIGACTION

           // assume broken, braindead sysv signal semantics

           signal(sig, (RETSIGTYPE (*)(int)) signalhandler);

         #endif // HAVE_SIGACTION

           return;

       }



       if (::verbose_signals || sig != SIGINT)

           psignal(sig, "fluxspace");



       if (! base_display->isStartup() && ! re_enter)

       {

           internal_error = True;



           re_enter = 1;

           if (::verbose_signals || sig != SIGINT)

               printf("Shutting downn");

           base_display->shutdown();

       }



       if (sig != SIGTERM && sig != SIGINT)

       {

           fprintf(stderr, "aborting... dumping coren");

           abort();

       }



       break;

   }

}



//===== Constructor



BaseDisplay::BaseDisplay(const char *app_name, const char *dpy_name, bool verbose_)

 : application_name(app_name),

   verbose(verbose_),

   _startup(True),

   _shutdown(False),

   server_grabs(0),

   mainWindow(None)

{

   ::verbose_signals = verbose;

   ::base_display = this;



 #ifdef    HAVE_SIGACTION

   struct sigaction action;



   action.sa_handler = signalhandler;

   action.sa_mask = sigset_t();

   action.sa_flags = SA_NOCLDSTOP | SA_NODEFER;



   sigaction(SIGSEGV, &action, NULL);

   sigaction(SIGFPE, &action, NULL);

   sigaction(SIGTERM, &action, NULL);

   sigaction(SIGINT, &action, NULL);

   sigaction(SIGCHLD, &acti

 

BaseDisplay.hh

#ifndef   __BaseDisplay_hh

#define   __BaseDisplay_hh



#include <X11/Xlib.h>

#include <X11/Xatom.h>

#include <string>



// forward declaration

class BaseDisplay;

class ScreenInfo;



#include "LinkedList.hh"



#define AttribShaded      (1l << 0)

#define AttribMaxHoriz    (1l << 1)

#define AttribMaxVert     (1l << 2)

#define AttribOmnipresent (1l << 3)

#define AttribWorkspace   (1l << 4)

#define AttribStack       (1l << 5)

#define AttribDecoration  (1l << 6)



#define StackTop          (0)

#define StackNormal       (1)

#define StackBottom       (2)



#define DecorNone         (0)

#define DecorNormal       (1)

#define DecorTiny         (2)

#define DecorTool         (3)



typedef struct _blackbox_hints {

 unsigned long flags, attrib, workspace, stack, decoration;

} BlackboxHints;



typedef struct _blackbox_attributes {

 unsigned long flags, attrib, workspace, stack;

 int premax_x, premax_y;

 unsigned int premax_w, premax_h;

} BlackboxAttributes;



#define PropBlackboxHintsElements      (5)

#define PropBlackboxAttributesElements (8)



#ifndef    __EMX__

void bexec(const char *, char *);

#endif // !__EMX__



char *bstrdup(const char *);

template <typename Z> inline Z min(Z a, Z b) { return ((a < b) ? a : b); }

template <typename Z> inline Z max(Z a, Z b) { return ((a > b) ? a : b); }



class BaseDisplay {

private:

 struct cursor {

   Cursor session, move, ll_angle, lr_angle;

 } cursor;



 struct shape {

   Bool extensions;

   int event_basep, error_basep;

 } shape;



 Atom xa_wm_colormap_windows, xa_wm_protocols, xa_wm_state,

   xa_wm_delete_window, xa_wm_take_focus, xa_wm_change_state,

   motif_wm_hints;



 // NETAttributes

 Atom blackbox_attributes, blackbox_change_attributes, blackbox_hints;



 // NETStructureMessages

 Atom blackbox_structure_messages, blackbox_notify_startup,

   blackbox_notify_window_add, blackbox_notify_window_del,

   blackbox_notify_window_focus, blackbox_notify_current_workspace,

   blackbox_notify_workspace_count, blackbox_notify_window_raise,

   blackbox_notify_window_lower;



 // message_types for client -> wm messages

 Atom blackbox_change_workspace, blackbox_change_window_focus,

   blackbox_cycle_window_focus;



 // root window properties

 Atom net_supported, net_client_list, net_client_list_stacking,

   net_number_of_desktops, net_desktop_geometry, net_desktop_viewport,

   net_current_desktop, net_desktop_names, net_active_window, net_workarea,

   net_supporting_wm_check, net_virtual_roots;



 // root window messages

 Atom net_close_window, net_wm_moveresize;



 // application window properties

 Atom net_properties, net_wm_name, net_wm_desktop, net_wm_window_type,

   net_wm_state, net_wm_strut, net_wm_icon_geometry, net_wm_icon, net_wm_pid,

   net_wm_handled_icons;



 // application protocols

 Atom net_wm_ping;



 string display_name, application_name;

 bool verbose;



 Bool _startup, _shutdown;

 Display *display;

 LinkedList<ScreenInfo> *screenInfoList;



 int number_of_screens, server_grabs, colors_per_channel;



 Window mainWindow;





protected:

 // pure virtual function... you must override this

 virtual void process_event(XEvent *) = 0;





public:

 BaseDisplay(const char* app_name, const char* dpy_name = NULL, bool verbose_ = false);

 virtual ~BaseDisplay();



 inline const Atom &getWMChangeStateAtom(void) const

   { return xa_wm_change_state; }

 inline const Atom &getWMStateAtom(void) const

   { return xa_wm_state; }

 inline const Atom &getWMDeleteAtom(void) const

   { return xa_wm_delete_window; }

 inline const Atom &getWMProtocolsAtom(void) const

   { return xa_wm_protocols; }

 inline const Atom &getWMTakeFocusAtom(void) const

   { return xa_wm_take_focus; }

 inline const Atom &getWMColormapAtom(void) const

   { return xa_wm_colormap_windows; }

 inline const Atom &getMotifWMHintsAtom(void) const

   { return motif_wm_hints; }



 // this atom is for normal app->WM hints about decorations, stacking,

 // starting workspace etc...

 inline const Atom &getBlackboxHintsAtom(void) const

   { return blackbox_hints;}



// these atoms are for normal app->WM interaction beyond the scope of the

 // ICCCM...

 inline const Atom &getBlackboxAttributesAtom(void) const

   { return blackbox_attributes; }

 inline const Atom &getBlackboxChangeAttributesAtom(void) const

   { return blackbox_change_attributes; }



 // these atoms are for window->WM interaction, with more control and

 // information on window "structure"... common examples are

 // notifying apps when windows are raised/lowered... when the user changes

 // workspaces... i.e. "pager talk"

 inline const Atom &getBlackboxStructureMessagesAtom(void) const

   { return blackbox_structure_messages; }



 // *Notify* portions of the NETStructureMessages protocol

 inline const Atom &getBlackboxNotifyStartupAtom(void) const

   { return blackbox_notify_startup; }

 inline const Atom &getBlackboxNotifyWindowAddAtom(void) const

   { return blackbox_notify_window_add; }



inline const Atom &getBlackboxNotifyWindowDelAtom(void) const

   { return blackbox_notify_window_del; }

 inline const Atom &getBlackboxNotifyWindowFocusAtom(void) const

   { return blackbox_notify_window_focus; }

 inline const Atom &getBlackboxNotifyCurrentWorkspaceAtom(void) const

   { return blackbox_notify_current_workspace; }

 inline const Atom &getBlackboxNotifyWorkspaceCountAtom(void) const

   { return blackbox_notify_workspace_count; }

 inline const Atom &getBlackboxNotifyWindowRaiseAtom(void) const

   { return blackbox_notify_window_raise; }

 inline const Atom &getBlackboxNotifyWindowLowerAtom(void) const

   { return blackbox_notify_window_lower; }



// atoms to change that request changes to the desktop environment during

 // runtime... these messages can be sent by any client... as the sending

 // client window id is not included in the ClientMessage event...

 inline const Atom &getBlackboxChangeWorkspaceAtom(void) const

   { return blackbox_change_workspace; }

 inline const Atom &getBlackboxChangeWindowFocusAtom(void) const

   { return blackbox_change_window_focus; }

 inline const Atom &getBlackboxCycleWindowFocusAtom(void) const

   { return blackbox_cycle_window_focus; }



 // root window properties

 inline const Atom &getNETSupportedAtom(void) const

   { return net_supported; }

 inline const Atom &getNETClientListAtom(void) const

   { return net_client_list; }

 inline const Atom &getNETClientListStackingAtom(void) const

   { return net_client_list_stacking; }

 inline const Atom &getNETNumberOfDesktopsAtom(void) const

   { return net_number_of_desktops; }

 inline const Atom &getNETDesktopGeometryAtom(void) const

   { return net_desktop_geometry; }

 inline const Atom &getNETDesktopViewportAtom(void) const

   { return net_desktop_viewport; }

 inline const Atom &getNETCurrentDesktopAtom(void) const

   { return net_current_desktop; }

 inline const Atom &getNETDesktopNamesAtom(void) const

   { return net_desktop_names; }

 inline const Atom &getNETActiveWindowAtom(void) const

   { return net_active_window; }

 inline const Atom &getNETWorkareaAtom(void) const

   { return net_workarea; }

 inline const Atom &getNETSupportingWMCheckAtom(void) const

   { return net_supporting_wm_check; }

 inline const Atom &getNETVirtualRootsAtom(void) const

   { return net_virtual_roots; }



// root window messages

 inline const Atom &getNETCloseWindowAtom(void) const

   { return net_close_window; }

 inline const Atom &getNETWMMoveResizeAtom(void) const

   { return net_wm_moveresize; }



 // application window properties

 inline const Atom &getNETPropertiesAtom(void) const

   { return net_properties; }

 inline const Atom &getNETWMNameAtom(void) const

   { return net_wm_name; }

 inline const Atom &getNETWMDesktopAtom(void) const

   { return net_wm_desktop; }

 inline const Atom &getNETWMWindowTypeAtom(void) const

   { return net_wm_window_type; }

 inline const Atom &getNETWMStateAtom(void) const

   { return net_wm_state; }

 inline const Atom &getNETWMStrutAtom(void) const

   { return net_wm_strut; }

 inline const Atom &getNETWMIconGeometryAtom(void) const

   { return net_wm_icon_geometry; }

 inline const Atom &getNETWMIconAtom(void) const

   { return net_wm_icon; }

 inline const Atom &getNETWMPidAtom(void) const

   { return net_wm_pid; }

 inline const Atom &getNETWMHandledIconsAtom(void) const

   { return net_wm_handled_icons; }



// application protocols

 inline const Atom &getNETWMPingAtom(void) const

   { return net_wm_ping; }



 inline ScreenInfo *getScreenInfo(int s)

   { return (ScreenInfo *) screenInfoList->find(s); }



 inline const Bool &hasShapeExtensions(void) const

   { return shape.extensions; }

 inline const Bool &doShutdown(void) const

   { return _shutdown; }

 inline const Bool &isStartup(void) const

   { return _startup; }



 inline const Cursor &getSessionCursor(void) const

   { return cursor.session; }

 inline const Cursor &getMoveCursor(void) const

   { return cursor.move; }

 inline const Cursor &getLowerLeftAngleCursor(void) const

   { return cursor.ll_angle; }

 inline const Cursor &getLowerRightAngleCursor(void) const

   { return cursor.lr_angle; }



 inline Display *getXDisplay(void) { return display; }



 inline const char *getXDisplayName(void) const

   { return display_name.c_str(); }

 inline const char *getApplicationName(void) const

   { return application_name.c_str(); }



 inline const int &getNumberOfScreens(void) const

   { return number_of_screens; }

 inline const int &getShapeEventBase(void) const

   { return shape.event_basep; }



 virtual void shutdown() { _shutdown = True; }

 inline void run(void) { _startup = _shutdown = False; }



 void grab(void);

 void ungrab(void);

 void eventLoop(void);

 Window getWindowParent(Window w);

 void addWindowEvents(Window w, long eventMask);



// another pure virtual... this is used to handle signals that BaseDisplay

 // doesn't understand itself

 virtual Bool handleSignal(int) = 0;

};





class ScreenInfo {

private:

 BaseDisplay *basedisplay;

 Visual *visual;

 Window root_window;



 int depth, screen_number;

 unsigned int width, height;





protected:





public:

 ScreenInfo(BaseDisplay *, int);



 inline BaseDisplay *getBaseDisplay(void) { return basedisplay; }

 inline Visual *getVisual(void) { return visual; }

 inline const Window &getRootWindow(void) const { return root_window; }



 inline const int &getDepth(void) const { return depth; }

 inline const int &getScreenNumber(void) const { return screen_number; }



 inline const unsigned int &getWidth(void) const { return width; }

 inline const unsigned int &getHeight(void) const { return height; }

};





#endif // __BaseDisplay_hh

 

 

BaseDisplay.Plo

# dummy

 

 

http://www.isomedia.com/homes/stevencooper...r/projects.html

http://www.mandrakeusers.org/viewtopic.php...2063&highlight=

google

http://fluxbox.sourceforge.net/docs/devbox...BaseDisplay.php

http://fluxbox.sourceforge.net/docs/devbox...lay-members.php

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...