mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-07-09 00:06:46 -04:00
opt: rename some var
This commit is contained in:
parent
0bb66d730b
commit
d2ce331cf2
5 changed files with 25 additions and 25 deletions
|
|
@ -1939,7 +1939,7 @@ int32_t disable_monitor(const Arg *arg) {
|
|||
if (match_monitor_spec(arg->v, m)) {
|
||||
wlr_output_state_set_enabled(&m->pending, false);
|
||||
mango_output_commit(m);
|
||||
m->only_dpms_off = 0;
|
||||
m->only_sleep = 0;
|
||||
updatemons(NULL, NULL);
|
||||
break;
|
||||
}
|
||||
|
|
@ -1953,7 +1953,7 @@ int32_t enable_monitor(const Arg *arg) {
|
|||
if (match_monitor_spec(arg->v, m)) {
|
||||
wlr_output_state_set_enabled(&m->pending, true);
|
||||
mango_output_commit(m);
|
||||
m->only_dpms_off = 0;
|
||||
m->only_sleep = 0;
|
||||
updatemons(NULL, NULL);
|
||||
break;
|
||||
}
|
||||
|
|
@ -1967,7 +1967,7 @@ int32_t toggle_monitor(const Arg *arg) {
|
|||
if (match_monitor_spec(arg->v, m)) {
|
||||
wlr_output_state_set_enabled(&m->pending, !m->wlr_output->enabled);
|
||||
mango_output_commit(m);
|
||||
m->only_dpms_off = 0;
|
||||
m->only_sleep = 0;
|
||||
updatemons(NULL, NULL);
|
||||
break;
|
||||
}
|
||||
|
|
@ -1975,14 +1975,14 @@ int32_t toggle_monitor(const Arg *arg) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int32_t dpms_off_monitor(const Arg *arg) {
|
||||
int32_t sleep_monitor(const Arg *arg) {
|
||||
Monitor *m = NULL;
|
||||
|
||||
wl_list_for_each(m, &mons, link) {
|
||||
if (match_monitor_spec(arg->v, m)) {
|
||||
wlr_output_state_set_enabled(&m->pending, false);
|
||||
mango_output_commit(m);
|
||||
m->only_dpms_off = 1;
|
||||
m->only_sleep = 1;
|
||||
updatemons(NULL, NULL);
|
||||
break;
|
||||
}
|
||||
|
|
@ -1990,13 +1990,13 @@ int32_t dpms_off_monitor(const Arg *arg) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int32_t dpms_on_monitor(const Arg *arg) {
|
||||
int32_t wakeup_monitor(const Arg *arg) {
|
||||
Monitor *m = NULL;
|
||||
wl_list_for_each(m, &mons, link) {
|
||||
if (match_monitor_spec(arg->v, m)) {
|
||||
wlr_output_state_set_enabled(&m->pending, true);
|
||||
mango_output_commit(m);
|
||||
m->only_dpms_off = 0;
|
||||
m->only_sleep = 0;
|
||||
updatemons(NULL, NULL);
|
||||
break;
|
||||
}
|
||||
|
|
@ -2004,13 +2004,13 @@ int32_t dpms_on_monitor(const Arg *arg) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int32_t dpms_toggle_monitor(const Arg *arg) {
|
||||
int32_t sleep_toggle_monitor(const Arg *arg) {
|
||||
Monitor *m = NULL;
|
||||
wl_list_for_each(m, &mons, link) {
|
||||
if (match_monitor_spec(arg->v, m)) {
|
||||
wlr_output_state_set_enabled(&m->pending, !m->wlr_output->enabled);
|
||||
mango_output_commit(m);
|
||||
m->only_dpms_off = !m->wlr_output->enabled;
|
||||
m->only_sleep = !m->wlr_output->enabled;
|
||||
updatemons(NULL, NULL);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue