summaryrefslogtreecommitdiff
path: root/src/blackbox.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-06-02 00:30:55 +0000
committerDana Jansens <danakj@orodu.net>2002-06-02 00:30:55 +0000
commita7db565c75f316fd04ccb04004b58f6378af63c9 (patch)
tree4652e4cc35c32a0bdbd3ec31bc033f7f1d20cf6d /src/blackbox.hh
parentf0c2fa18bef6a0f74d607eb390b98ccfbd8d778f (diff)
window-to-window snapping is now a run-time option.
window-corner snapping added, and also is a run-time option.
Diffstat (limited to 'src/blackbox.hh')
-rw-r--r--src/blackbox.hh9
1 files changed, 9 insertions, 0 deletions
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<Window, BlackboxWindow*> 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);