mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-17 22:05:25 -05:00
fix: fix ov_tab_mode arg
This commit is contained in:
parent
6cf36dfa67
commit
40b6f82823
4 changed files with 4 additions and 7 deletions
|
|
@ -242,7 +242,7 @@ bind=CTRL+ALT,Right,resizewin,+50,+0
|
|||
mousebind=SUPER,btn_left,moveresize,curmove
|
||||
mousebind=NONE,btn_middle,togglemaximizescreen,0
|
||||
mousebind=SUPER,btn_right,moveresize,curresize
|
||||
mousebind=NONE,btn_left,toggleoverview,-1
|
||||
mousebind=NONE,btn_left,toggleoverview,1
|
||||
mousebind=NONE,btn_right,killclient,0
|
||||
|
||||
# Axis Bindings
|
||||
|
|
|
|||
|
|
@ -880,6 +880,7 @@ FuncType parse_func_name(char *func_name, Arg *arg, char *arg_value,
|
|||
func = toggleglobal;
|
||||
} else if (strcmp(func_name, "toggleoverview") == 0) {
|
||||
func = toggleoverview;
|
||||
(*arg).i = atoi(arg_value);
|
||||
} else if (strcmp(func_name, "set_proportion") == 0) {
|
||||
func = set_proportion;
|
||||
(*arg).f = atof(arg_value);
|
||||
|
|
|
|||
|
|
@ -1447,7 +1447,7 @@ int minimized(const Arg *arg) {
|
|||
int toggleoverview(const Arg *arg) {
|
||||
Client *c = NULL;
|
||||
|
||||
if (selmon->isoverview && ov_tab_mode && arg->i != -1 && selmon->sel) {
|
||||
if (selmon->isoverview && ov_tab_mode && arg->i != 1 && selmon->sel) {
|
||||
focusstack(&(Arg){.i = 1});
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1498,10 +1498,6 @@ int toggleoverview(const Arg *arg) {
|
|||
|
||||
view(&(Arg){.ui = target}, false);
|
||||
|
||||
if (ov_tab_mode && selmon->isoverview && selmon->sel) {
|
||||
focusstack(&(Arg){.i = 1});
|
||||
}
|
||||
|
||||
refresh_monitors_workspaces_status(selmon);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3406,7 +3406,7 @@ void keypress(struct wl_listener *listener, void *data) {
|
|||
keycode == 134 || keycode == 105 || keycode == 108 || keycode == 62) &&
|
||||
selmon && selmon->sel) {
|
||||
if (selmon->isoverview && selmon->sel) {
|
||||
toggleoverview(&(Arg){.i = -1});
|
||||
toggleoverview(&(Arg){.i = 1});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue