opt: remove increase_proportion dispatch
should use resizewin to replace it
This commit is contained in:
@@ -887,9 +887,6 @@ FuncType parse_func_name(char *func_name, Arg *arg, char *arg_value,
|
|||||||
} else if (strcmp(func_name, "set_proportion") == 0) {
|
} else if (strcmp(func_name, "set_proportion") == 0) {
|
||||||
func = set_proportion;
|
func = set_proportion;
|
||||||
(*arg).f = atof(arg_value);
|
(*arg).f = atof(arg_value);
|
||||||
} else if (strcmp(func_name, "increase_proportion") == 0) {
|
|
||||||
func = increase_proportion;
|
|
||||||
(*arg).f = atof(arg_value);
|
|
||||||
} else if (strcmp(func_name, "switch_proportion_preset") == 0) {
|
} else if (strcmp(func_name, "switch_proportion_preset") == 0) {
|
||||||
func = switch_proportion_preset;
|
func = switch_proportion_preset;
|
||||||
} else if (strcmp(func_name, "viewtoleft") == 0) {
|
} else if (strcmp(func_name, "viewtoleft") == 0) {
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ int toggle_scratchpad(const Arg *arg);
|
|||||||
int focusdir(const Arg *arg);
|
int focusdir(const Arg *arg);
|
||||||
int toggleoverview(const Arg *arg);
|
int toggleoverview(const Arg *arg);
|
||||||
int set_proportion(const Arg *arg);
|
int set_proportion(const Arg *arg);
|
||||||
int increase_proportion(const Arg *arg);
|
|
||||||
int switch_proportion_preset(const Arg *arg);
|
int switch_proportion_preset(const Arg *arg);
|
||||||
int zoom(const Arg *arg);
|
int zoom(const Arg *arg);
|
||||||
int tagsilent(const Arg *arg);
|
int tagsilent(const Arg *arg);
|
||||||
|
|||||||
@@ -281,18 +281,6 @@ int incovgaps(const Arg *arg) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int increase_proportion(const Arg *arg) {
|
|
||||||
if (selmon->sel) {
|
|
||||||
unsigned int max_client_width =
|
|
||||||
selmon->w.width - 2 * scroller_structs - gappih;
|
|
||||||
selmon->sel->scroller_proportion =
|
|
||||||
MIN(MAX(arg->f + selmon->sel->scroller_proportion, 0.1), 1.0);
|
|
||||||
selmon->sel->geom.width = max_client_width * arg->f;
|
|
||||||
arrange(selmon, false);
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int setmfact(const Arg *arg) {
|
int setmfact(const Arg *arg) {
|
||||||
float f;
|
float f;
|
||||||
Client *c = NULL;
|
Client *c = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user