mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-16 14:33:36 -04:00
opt: optimize ipc event send
This commit is contained in:
parent
21cd9dcf80
commit
c3683bde74
6 changed files with 97 additions and 55 deletions
|
|
@ -572,7 +572,7 @@ int32_t setlayout(const Arg *arg) {
|
|||
selmon->pertag->ltidxs[selmon->pertag->curtag] = &layouts[jk];
|
||||
clear_fullscreen_and_maximized_state(selmon);
|
||||
arrange(selmon, false, false);
|
||||
printstatus();
|
||||
printstatus(IPC_WATCH_ARRANGGE);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -586,7 +586,7 @@ int32_t setkeymode(const Arg *arg) {
|
|||
} else {
|
||||
keymode.isdefault = false;
|
||||
}
|
||||
printstatus();
|
||||
printstatus(IPC_WATCH_KEYMODE);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
@ -1038,7 +1038,7 @@ int32_t switch_keyboard_layout(const Arg *arg) {
|
|||
wlr_seat_keyboard_notify_modifiers(seat, &tkb->modifiers);
|
||||
}
|
||||
|
||||
printstatus();
|
||||
printstatus(IPC_WATCH_KB_LAYOUT);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -1082,7 +1082,7 @@ int32_t switch_layout(const Arg *arg) {
|
|||
}
|
||||
clear_fullscreen_and_maximized_state(selmon);
|
||||
arrange(selmon, false, false);
|
||||
printstatus();
|
||||
printstatus(IPC_WATCH_ARRANGGE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -1093,7 +1093,7 @@ int32_t switch_layout(const Arg *arg) {
|
|||
jk == LENGTH(layouts) - 1 ? &layouts[0] : &layouts[jk + 1];
|
||||
clear_fullscreen_and_maximized_state(selmon);
|
||||
arrange(selmon, false, false);
|
||||
printstatus();
|
||||
printstatus(IPC_WATCH_ARRANGGE);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -1451,7 +1451,7 @@ int32_t toggletag(const Arg *arg) {
|
|||
focusclient(focustop(selmon), 1);
|
||||
arrange(selmon, false, false);
|
||||
}
|
||||
printstatus();
|
||||
printstatus(IPC_WATCH_ARRANGGE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -1477,7 +1477,7 @@ int32_t toggleview(const Arg *arg) {
|
|||
}
|
||||
arrange(selmon, false, false);
|
||||
}
|
||||
printstatus();
|
||||
printstatus(IPC_WATCH_ARRANGGE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -1649,7 +1649,7 @@ int32_t comboview(const Arg *arg) {
|
|||
view(&(Arg){.ui = newtags}, false);
|
||||
}
|
||||
|
||||
printstatus();
|
||||
printstatus(IPC_WATCH_ARRANGGE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue