mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-12 04:28:35 -05:00
opt: use event mask to decide whether print ipc message
This commit is contained in:
parent
5771770eeb
commit
ca3ff578fa
4 changed files with 205 additions and 98 deletions
|
|
@ -504,7 +504,7 @@ int setlayout(const Arg *arg) {
|
|||
selmon->pertag->ltidxs[selmon->pertag->curtag] = &layouts[jk];
|
||||
clear_fullscreen_and_maximized_state(selmon);
|
||||
arrange(selmon, false);
|
||||
printstatus();
|
||||
printstatus(PRINT_ALL);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -518,7 +518,7 @@ int setkeymode(const Arg *arg) {
|
|||
} else {
|
||||
keymode.isdefault = false;
|
||||
}
|
||||
printstatus();
|
||||
printstatus(PRINT_KEYMODE);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
@ -867,7 +867,7 @@ int switch_keyboard_layout(const Arg *arg) {
|
|||
wlr_seat_keyboard_notify_modifiers(seat, &tkb->modifiers);
|
||||
}
|
||||
|
||||
printstatus();
|
||||
printstatus(PRINT_KB_LAYOUT);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -908,7 +908,7 @@ int switch_layout(const Arg *arg) {
|
|||
}
|
||||
clear_fullscreen_and_maximized_state(selmon);
|
||||
arrange(selmon, false);
|
||||
printstatus();
|
||||
printstatus(PRINT_ALL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -919,7 +919,7 @@ int switch_layout(const Arg *arg) {
|
|||
jk == LENGTH(layouts) - 1 ? &layouts[0] : &layouts[jk + 1];
|
||||
clear_fullscreen_and_maximized_state(selmon);
|
||||
arrange(selmon, false);
|
||||
printstatus();
|
||||
printstatus(PRINT_ALL);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -1261,7 +1261,7 @@ int toggletag(const Arg *arg) {
|
|||
focusclient(focustop(selmon), 1);
|
||||
arrange(selmon, false);
|
||||
}
|
||||
printstatus();
|
||||
printstatus(PRINT_ALL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -1279,7 +1279,7 @@ int toggleview(const Arg *arg) {
|
|||
focusclient(focustop(selmon), 1);
|
||||
arrange(selmon, false);
|
||||
}
|
||||
printstatus();
|
||||
printstatus(PRINT_ALL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -1399,7 +1399,7 @@ int comboview(const Arg *arg) {
|
|||
view(&(Arg){.ui = newtags}, false);
|
||||
}
|
||||
|
||||
printstatus();
|
||||
printstatus(PRINT_ALL);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue