From 3356db488548ea8bfca0ab398a97b1d425b8bb19 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 2 Aug 2002 19:02:47 +0000 Subject: add rc options for window snapping/resistance --- src/Window.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Window.cc') 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; -- cgit v1.2.3