add a sanity check for the snap offset, limiting it to 50
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/Screen.cc
→
src/Screen.cc
@@ -684,6 +684,8 @@
if (! config->getValue(screenstr + "edgeSnapOffset", resource.snap_offset)) resource.snap_offset = 0; + if (resource.snap_offset > 50) // sanity check, setting this huge would + resource.snap_offset = 50; // seriously suck. if (! config->getValue(screenstr + "edgeSnapThreshold", resource.snap_threshold))