all repos — fluxbox @ 7b433c31a5776caef1296f342e00a3150ee4f9de

custom fork of the fluxbox windowmanager

cleaning
fluxgen fluxgen
commit

7b433c31a5776caef1296f342e00a3150ee4f9de

parent

f801b384e5300aaa46ef2b3fb267243a3c4b78fc

1 files changed, 37 insertions(+), 34 deletions(-)

jump to
M src/fluxbox.hhsrc/fluxbox.hh

@@ -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.hh,v 1.49 2003/04/15 12:11:10 fluxgen Exp $ +// $Id: fluxbox.hh,v 1.50 2003/04/25 15:52:58 fluxgen Exp $ #ifndef FLUXBOX_HH #define FLUXBOX_HH

@@ -31,17 +31,16 @@ #include "Resource.hh"

#include "BaseDisplay.hh" #include "Timer.hh" #include "Observer.hh" - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif // HAVE_CONFIG_H - #include "SignalHandler.hh" #include <X11/Xlib.h> #include <X11/Xresource.h> #include <cstdio> + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif // HAVE_CONFIG_H #ifdef TIME_WITH_SYS_TIME #include <sys/time.h>

@@ -74,25 +73,29 @@ class Fluxbox : public BaseDisplay, public FbTk::TimeoutHandler,

public FbTk::SignalEventHandler, public FbTk::Observer { public: - Fluxbox(int argc, char **argv, const char * dpy_name= 0, const char *rc = 0); + Fluxbox(int argc, char **argv, const char * dpy_name= 0, + const char *rcfilename = 0); virtual ~Fluxbox(); - static Fluxbox *instance() { return singleton; } + static Fluxbox *instance() { return s_singleton; } inline bool useIconBar() const { return *m_rc_iconbar; } inline void saveIconBar(bool value) { m_rc_iconbar = value; } - inline Atom getFluxboxPidAtom() const { return fluxbox_pid; } + inline Atom getFluxboxPidAtom() const { return m_fluxbox_pid; } FluxboxWindow *searchGroup(Window, FluxboxWindow *); FluxboxWindow *searchWindow(Window); - inline FluxboxWindow *getFocusedWindow() { return focused_window; } + inline FluxboxWindow *getFocusedWindow() { return m_focused_window; } BScreen *searchScreen(Window w); inline const Time &getDoubleClickInterval() const { return resource.double_click_interval; } - inline const Time &getLastTime() const { return last_time; } + inline const Time &getLastTime() const { return m_last_time; } + + void addAtomHandler(AtomHandler *atomh); + void removeAtomHandler(AtomHandler *atomh); /// obsolete enum Titlebar{SHADE=0, MINIMIZE, MAXIMIZE, CLOSE, STICK, MENU, EMPTY};

@@ -136,8 +139,7 @@ inline unsigned int getCacheLife() const { return *m_rc_cache_life * 60000; }

inline unsigned int getCacheMax() const { return *m_rc_cache_max; } inline void maskWindowEvents(Window w, FluxboxWindow *bw) - { masked = w; masked_window = bw; } - inline void setNoFocus(bool f) { no_focus = f; } + { m_masked = w; m_masked_window = bw; } void watchKeyRelease(BScreen *screen, unsigned int mods);

@@ -184,7 +186,7 @@ Cursor session, move, ll_angle, lr_angle;

} cursor; typedef struct MenuTimestamp { - char *filename; + std::string filename; time_t timestamp; } MenuTimestamp;

@@ -228,36 +230,37 @@ Resource<TitlebarList> m_rc_titlebar_left, m_rc_titlebar_right;

Resource<unsigned int> m_rc_cache_life, m_rc_cache_max; - std::map<Window, FluxboxWindow *> windowSearch; - std::map<Window, FluxboxWindow *> groupSearch; + std::map<Window, FluxboxWindow *> m_window_search; + std::map<Window, FluxboxWindow *> m_group_search; - std::list<MenuTimestamp *> menuTimestamps; + std::list<MenuTimestamp *> m_menu_timestamps; typedef std::list<BScreen *> ScreenList; - ScreenList screenList; + ScreenList m_screen_list; - FluxboxWindow *focused_window, *masked_window; - FbTk::Timer timer; + FluxboxWindow *m_focused_window, *m_masked_window; + FbTk::Timer m_timer; - BScreen *watching_screen; - unsigned int watch_keyrelease; + BScreen *m_watching_screen; + unsigned int m_watch_keyrelease; + + Atom m_fluxbox_pid; + + bool m_reconfigure_wait, m_reread_menu_wait; + Time m_last_time; + Window m_masked; + std::string m_rc_file; ///< resource filename + char **m_argv; + int m_argc; - Atom fluxbox_pid; + std::auto_ptr<Keys> m_key; - bool no_focus, reconfigure_wait, reread_menu_wait; - Time last_time; - Window masked; - std::string rc_file; ///< resource filename - char **argv; - int argc; - std::auto_ptr<Keys> key; - std::string slitlist_path; //default arguments for titlebar left and right - static Fluxbox::Titlebar m_titlebar_left[], m_titlebar_right[]; + static Fluxbox::Titlebar s_titlebar_left[], s_titlebar_right[]; - static Fluxbox *singleton; + static Fluxbox *s_singleton; std::vector<AtomHandler *> m_atomhandler; }; -#endif // _FLUXBOX_HH_ +#endif // FLUXBOX_HH