X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FToolbar.hh;h=f95d6a553435ebaa17daf4c1ab0727b0906bd9e5;hb=f320a023977e430785454e70c8c861b7c95f9a8f;hp=31b35e7d74d00e29573569c12654ad805d17e657;hpb=0305cbdc3ae8525c74b2bb9b23884035549e3407;p=chaz%2Fopenbox diff --git a/src/Toolbar.hh b/src/Toolbar.hh index 31b35e7d..f95d6a55 100644 --- a/src/Toolbar.hh +++ b/src/Toolbar.hh @@ -90,7 +90,7 @@ private: Window window, workspace_label, window_label, clock, psbutton, nsbutton, pwbutton, nwbutton; - int x_hidden, y_hidden, hour, minute, grab_x, grab_y; + int x_hidden, y_hidden, hour, minute; unsigned int window_label_w, workspace_label_w, clock_w, button_w, bevel_w, label_h; @@ -155,24 +155,29 @@ public: void save_rc(void); void load_rc(void); + void mapToolbar(void); + void unmapToolbar(void); + inline Window getWindowID(void) const { return frame.window; } inline const Rect& getRect(void) const { return frame.rect; } inline unsigned int getWidth(void) const { return frame.rect.width(); } inline unsigned int getHeight(void) const { return frame.rect.height(); } inline unsigned int getExposedHeight(void) const - { return ((do_auto_hide) ? frame.bevel_w : frame.rect.height()); } + { return (screen->doHideToolbar() ? 0 : + ((do_auto_hide) ? frame.bevel_w : + frame.rect.height())); } inline int getX(void) const { return ((hidden) ? frame.x_hidden : frame.rect.x()); } inline int getY(void) const { return ((hidden) ? frame.y_hidden : frame.rect.y()); } - void buttonPressEvent(XButtonEvent *be); - void buttonReleaseEvent(XButtonEvent *re); - void enterNotifyEvent(XCrossingEvent * /*unused*/); - void leaveNotifyEvent(XCrossingEvent * /*unused*/); - void exposeEvent(XExposeEvent *ee); - void keyPressEvent(XKeyEvent *ke); + void buttonPressEvent(const XButtonEvent *be); + void buttonReleaseEvent(const XButtonEvent *re); + void enterNotifyEvent(const XCrossingEvent * /*unused*/); + void leaveNotifyEvent(const XCrossingEvent * /*unused*/); + void exposeEvent(const XExposeEvent *ee); + void keyPressEvent(const XKeyEvent *ke); void edit(void); void reconfigure(void);