]> Dogcows Code - chaz/openbox/commitdiff
no default reset key
authorDana Jansens <danakj@orodu.net>
Fri, 3 Jan 2003 22:34:50 +0000 (22:34 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 3 Jan 2003 22:34:50 +0000 (22:34 +0000)
src/bindings.cc

index 3df98da92056b77b320bb85f57b3331aeb487e52..97dd2aa1f8e8b1c183e38ee59e8938e8fe88f9c2 100644 (file)
@@ -146,7 +146,7 @@ OBBindings::OBBindings()
 {
   _timer.setTimeout(5000); // chains reset after 5 seconds
   
-  setResetKey("C-g"); // set the default reset key
+//  setResetKey("C-g"); // set the default reset key
 
   for (int i = 0; i < NUM_EVENTS; ++i)
     _events[i] = 0;
@@ -329,13 +329,14 @@ void OBBindings::grabKeys(bool grab)
       p = p->next_sibling;
     }
 
-    if (grab)
-      otk::OBDisplay::grabKey(_resetkey.key, _resetkey.modifiers,
-                              root, true, GrabModeAsync, GrabModeAsync,
-                              false);
-    else
-      otk::OBDisplay::ungrabKey(_resetkey.key, _resetkey.modifiers,
-                                root);
+    if (_resetkey.key)
+      if (grab)
+        otk::OBDisplay::grabKey(_resetkey.key, _resetkey.modifiers,
+                                root, false, GrabModeAsync, GrabModeAsync,
+                                false);
+      else
+        otk::OBDisplay::ungrabKey(_resetkey.key, _resetkey.modifiers,
+                                  root);
   }
 }
 
This page took 0.025069 seconds and 4 git commands to generate.