From a7db565c75f316fd04ccb04004b58f6378af63c9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 2 Jun 2002 00:30:55 +0000 Subject: window-to-window snapping is now a run-time option. window-corner snapping added, and also is a run-time option. --- src/blackbox.hh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/blackbox.hh') 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); -- cgit v1.2.3