summaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-08-02 19:02:47 +0000
committerDana Jansens <danakj@orodu.net>2002-08-02 19:02:47 +0000
commit3356db488548ea8bfca0ab398a97b1d425b8bb19 (patch)
tree6d2b8f60e68fa349e18bcc1973f6ba4381802ef6 /src/Window.cc
parentb1a2c014eba9ad4b09b2a577f9cee24315034f3a (diff)
add rc options for window snapping/resistance
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Window.cc b/src/Window.cc
index e352aa63..aefb81f7 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -3115,16 +3115,16 @@ bool BlackboxWindow::doWorkspaceWarping(int x_root, int y_root,
void BlackboxWindow::doWindowSnapping(int &dx, int &dy) {
// how much resistance to edges to provide
- const int resistance_size = screen->getEdgeSnapThreshold();
+ const int resistance_size = screen->getResistanceSize();
// how far away to snap
- const int snap_distance = screen->getEdgeSnapThreshold();
+ const int snap_distance = screen->getSnapThreshold();
// how to snap windows
- const int snap_to_windows = BScreen::WindowResistance;
- const int snap_to_edges = BScreen::WindowResistance;
+ const int snap_to_windows = screen->getWindowToWindowSnap();
+ const int snap_to_edges = screen->getWindowToEdgeSnap();
// the amount of space away from the edge to provide resistance/snap
- const int snap_offset = screen->getEdgeSnapThreshold();
+// const int snap_offset = screen->getSnapThreshold();
// find the geomeetery where the moving window currently is
const Rect &moving = screen->doOpaqueMove() ? frame.rect : frame.changing;