X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fblackbox.hh;h=52e0e653c923bd26da35f11fe4f30f7e94c2ceb8;hb=db451d95bf97b8a8e995f031ac98da50606fd3a0;hp=a6e689d7666d386b18ffe3cbef6d1a5a640bb8a8;hpb=2dde696a1335ef61bb368c55f4ee52e1dd8610a1;p=chaz%2Fopenbox diff --git a/src/blackbox.hh b/src/blackbox.hh index a6e689d7..52e0e653 100644 --- a/src/blackbox.hh +++ b/src/blackbox.hh @@ -47,11 +47,10 @@ extern "C" { #include #include -#include "i18n.hh" -#include "BaseDisplay.hh" -#include "Configuration.hh" -#include "Timer.hh" -#include "XAtom.hh" +#include "basedisplay.hh" +#include "configuration.hh" +#include "timer.hh" +#include "xatom.hh" #define AttribShaded (1l << 0) #define AttribMaxHoriz (1l << 1) @@ -115,6 +114,12 @@ private: timeval auto_raise_delay; unsigned long cache_life, cache_max; std::string titlebar_layout; + unsigned int mod_mask; // modifier mask used for window-mouse interaction + + +#ifdef XINERAMA + bool xinerama_placement, xinerama_maximize, xinerama_snap; +#endif // XINERAMA } resource; typedef std::map WindowLookup; @@ -181,6 +186,19 @@ public: Toolbar *searchToolbar(Window); Slit *searchSlit(Window); +#ifdef XINERAMA + inline bool doXineramaPlacement(void) const + { return resource.xinerama_placement; } + inline bool doXineramaMaximizing(void) const + { return resource.xinerama_maximize; } + inline bool doXineramaSnapping(void) const + { return resource.xinerama_snap; } + + void saveXineramaPlacement(bool x); + void saveXineramaMaximizing(bool x); + void saveXineramaSnapping(bool x); +#endif // XINERAMA + void saveMenuSearch(Window window, Basemenu *data); void saveSystrayWindowSearch(Window window, BScreen *screen); void saveWindowSearch(Window window, BlackboxWindow *data); @@ -237,6 +255,9 @@ public: { return cursor.ul_angle; } inline Cursor getUpperRightAngleCursor(void) const { return cursor.ur_angle; } + + inline unsigned int getMouseModMask(void) const + { return resource.mod_mask; } void setFocusedWindow(BlackboxWindow *win); void setChangingWindow(BlackboxWindow *win);