Commit e9ec78c5 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Re-Add --xinerama, but warn that it's deprecated

parent fd95bf93
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -351,7 +351,7 @@ feh_parse_option_array(int argc, char **argv)
      {"scale-down", 0, 0, '.'},            /* okay */
      {"no-rotate-ctrl-mask", 0, 0, '7'},
      {"no-blur-ctrl-mask", 0, 0, '9'},
      {"no-xinerama", 0, 0, 206},
      {"no-xinerama", 0, 0, 225},
      {"no-jump-on-resort",0,0,220},
      {"hide-pointer",0,0,221},
      /* options with values */
@@ -394,6 +394,7 @@ feh_parse_option_array(int argc, char **argv)
      {"bg-seamless", 1, 0, 203},
      {"menu-style", 1, 0, 204},
      {"zoom", 1, 0, 205},
      {"xinerama", 1, 0, 206},
      {"screen-clip", 1, 0, 207},
      {"menu-border", 1, 0, 208},
      {"caption-path", 1, 0, 209},
@@ -681,7 +682,8 @@ feh_parse_option_array(int argc, char **argv)
           opt.default_zoom = atoi(optarg);
           break;
        case 206:
           opt.xinerama = 0;
           opt.xinerama = atoi(optarg);
           weprintf("Option --xinerama is deprecated, use --no-xinerama (or nothing) instead");
           break;
        case 207:
           opt.screen_clip = atoi(optarg);
@@ -738,6 +740,9 @@ feh_parse_option_array(int argc, char **argv)
        case 224:
           opt.cycle_once = 1;
           break;
        case 225:
           opt.xinerama = 0;
           break;
        default:
           break;
      }