]> git.lizzy.rs Git - bspwm.git/commitdiff
Don't handle deprecated `click_to_focus` values
authorBastien Dejean <nihilhill@gmail.com>
Mon, 24 Jul 2017 19:03:52 +0000 (21:03 +0200)
committerBastien Dejean <nihilhill@gmail.com>
Mon, 24 Jul 2017 19:03:52 +0000 (21:03 +0200)
src/parse.c

index 3a72f0d0205766bb88e12b76020ca3d407078e06..d307d6c66946fd3ba345066a3bbfa5ae5d5afdda 100644 (file)
@@ -215,7 +215,6 @@ bool parse_modifier_mask(char *s, uint16_t *m)
 
 bool parse_button_index(char *s, int8_t *b)
 {
-       bool v;
        if (strcmp(s, "any") == 0) {
                *b = XCB_BUTTON_INDEX_ANY;
                return true;
@@ -231,13 +230,6 @@ bool parse_button_index(char *s, int8_t *b)
        } else if (strcmp(s, "none") == 0) {
                *b = -1;
                return true;
-       } else if (parse_bool(s, &v)) {
-               if (v) {
-                       *b = XCB_BUTTON_INDEX_1;
-               } else {
-                       *b = -1;
-               }
-               return true;
        }
        return false;
 }