X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fblackbox.hh;h=48fda8c549a594aa5f0697b541c343cf0318b5fe;hb=a7db565c75f316fd04ccb04004b58f6378af63c9;hp=cb38dc3400ae019800703d1c19ce2f7e86bff84b;hpb=f0c2fa18bef6a0f74d607eb390b98ccfbd8d778f;p=chaz%2Fopenbox diff --git a/src/blackbox.hh b/src/blackbox.hh index cb38dc34..48fda8c5 100644 --- a/src/blackbox.hh +++ b/src/blackbox.hh @@ -115,6 +115,8 @@ private: timeval auto_raise_delay; unsigned long cache_life, cache_max; std::string titlebar_layout; + bool window_to_window_snap; + bool window_corner_snap; } resource; typedef std::map WindowLookup; @@ -215,6 +217,11 @@ public: inline unsigned long getCacheMax(void) const { return resource.cache_max; } + inline bool getWindowToWindowSnap(void) const + { return resource.window_to_window_snap; } + inline bool getWindowCornerSnap(void) const + { return resource.window_corner_snap; } + inline void setNoFocus(bool f) { no_focus = f; } inline Cursor getSessionCursor(void) const @@ -229,6 +236,8 @@ public: void setFocusedWindow(BlackboxWindow *w); void shutdown(void); void saveStyleFilename(const std::string& filename); + void saveWindowToWindowSnap(bool); + void saveWindowCornerSnap(bool); void addMenuTimestamp(const std::string& filename); void restart(const char *prog = 0); void reconfigure(void);