1 // -*- mode: C++; indent-tabs-mode: nil; -*-
12 #include "otk/screeninfo.hh"
19 static Openbox
*instance
; // there can only be ONE instance of this class in
20 // the program, and it is held in here
22 typedef std::vector
<otk::ScreenInfo
> ScreenInfoList
;
31 std::string _rcfilepath
; // path to the config file to use/in use
32 std::string _menufilepath
; // path to the menu file to use/in use
33 char *_displayreq
; // display requested by the user
34 char *_argv0
; // argv[0], how the program was called
36 RunState _state
; // the state of the window manager
38 ScreenInfoList _screenInfoList
; // info for all screens on the display
40 void parseCommandLine(int argv
, char **argv
);
44 static int xerrorHandler(Display
*d
, XErrorEvent
*e
);
45 static void signalHandler(int signal
);
48 //! Openbox constructor.
50 \param argc Number of command line arguments, as received in main()
51 \param argv The command line arguments, as received in main()
53 Openbox(int argc
, char **argv
);
54 //! Openbox destructor.
57 //! Returns the state of the window manager (starting, exiting, etc).
58 inline RunState
state() const { return _state
; }
62 // XXX: TEMPORARY!#!@%*!^#*!#!#!
63 virtual void process_event(XEvent
*) = 0;
65 //! Requests that the window manager exit.
66 inline void shutdown() { _state
= State_Exiting
; }
71 #endif // __openbox_hh