}
+void BScreen::saveSnapOffset(int t) {
+ resource.snap_offset = t;
+ config->setValue(screenstr + "edgeSnapOffset",
+ resource.snap_offset);
+}
+
+
void BScreen::saveRowPlacementDirection(int d) {
resource.row_direction = d;
config->setValue(screenstr + "rowPlacementDirection",
saveWorkspaces(resource.workspaces);
savePlacementPolicy(resource.placement_policy);
saveSnapThreshold(resource.snap_threshold);
+ saveSnapOffset(resource.snap_offset);
saveResistanceSize(resource.resistance_size);
saveRowPlacementDirection(resource.row_direction);
saveColPlacementDirection(resource.col_direction);
b = true;
image_control->setDither(b);
+ if (! config->getValue(screenstr + "edgeSnapOffset",
+ resource.snap_offset))
+ resource.snap_offset = 0;
+
if (! config->getValue(screenstr + "edgeSnapThreshold",
resource.snap_threshold))
resource.snap_threshold = 4;
ignore_shaded, ignore_maximized, workspace_warping;
int snap_to_windows, snap_to_edges;
+ unsigned int snap_offset;
BColor border_color;
{ return resource.workspaces; }
inline int getPlacementPolicy(void) const
{ return resource.placement_policy; }
+ inline int getSnapOffset(void) const
+ { return resource.snap_offset; }
inline int getSnapThreshold(void) const
{ return resource.snap_threshold; }
inline int getResistanceSize(void) const
void saveRowPlacementDirection(int d);
void saveColPlacementDirection(int d);
void saveSnapThreshold(int t);
+ void saveSnapOffset(int o);
void saveResistanceSize(int s);
void saveImageDither(bool d);
void saveAAFonts(bool f);
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 = 0;
+ const int snap_offset = screen->getSnapOffset();
// find the geomeetery where the moving window currently is
const Rect &moving = screen->doOpaqueMove() ? frame.rect : frame.changing;