]> Dogcows Code - chaz/openbox/commitdiff
add a sanity check for the snap offset, limiting it to 50
authorDana Jansens <danakj@orodu.net>
Sat, 3 Aug 2002 17:05:09 +0000 (17:05 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 3 Aug 2002 17:05:09 +0000 (17:05 +0000)
src/Screen.cc

index d445391296319ab8a42e520c9ee7ff52db005bfc..b24c514a4815609072dd8474da7cc369f0d82020 100644 (file)
@@ -684,6 +684,8 @@ void BScreen::load_rc(void) {
   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))
This page took 0.023678 seconds and 4 git commands to generate.