]> Dogcows Code - chaz/openbox/blobdiff - openbox/actions/cyclewindows.c
Merge branch 'backport' into work
[chaz/openbox] / openbox / actions / cyclewindows.c
index 5354f087c55254f5fdd5fd700a63e88a93ac6cc7..6d8478374590f6728026dd6e7db81eae0bf3bf4e 100644 (file)
@@ -146,13 +146,13 @@ static gboolean i_input_func(guint initial_state,
 {
     if (e->type == KeyPress) {
         /* Escape cancels no matter what */
-        if (e->xkey.keycode == ob_keycode(OB_KEY_ESCAPE)) {
+        if (ob_keycode_match(e->xkey.keycode, OB_KEY_ESCAPE)) {
             end_cycle(TRUE, e->xkey.state, options);
             return FALSE;
         }
 
         /* There were no modifiers and they pressed enter */
-        else if (e->xkey.keycode == ob_keycode(OB_KEY_RETURN) &&
+        else if (ob_keycode_match(e->xkey.keycode, OB_KEY_RETURN) &&
                  !initial_state)
         {
             end_cycle(FALSE, e->xkey.state, options);
This page took 0.017764 seconds and 4 git commands to generate.