mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-07-10 11:04:10 -04:00
opt: rename some var
This commit is contained in:
parent
96d1d3805a
commit
516052ff14
5 changed files with 25 additions and 25 deletions
|
|
@ -588,7 +588,7 @@ struct Monitor {
|
|||
int32_t isoverview;
|
||||
int32_t is_jump_mode;
|
||||
int32_t is_in_hotarea;
|
||||
int32_t only_dpms_off;
|
||||
int32_t only_sleep;
|
||||
uint32_t visible_clients;
|
||||
uint32_t visible_tiling_clients;
|
||||
uint32_t visible_scroll_tiling_clients;
|
||||
|
|
@ -5164,7 +5164,7 @@ outputmgrapplyortest(struct wlr_output_configuration_v1 *config, int32_t test) {
|
|||
|
||||
/* Ensure displays previously disabled by
|
||||
* wlr-output-power-management-v1 are properly handled*/
|
||||
m->only_dpms_off = 0;
|
||||
m->only_sleep = 0;
|
||||
|
||||
wlr_output_state_init(&state);
|
||||
wlr_output_state_set_enabled(&state, config_head->state.enabled);
|
||||
|
|
@ -5314,7 +5314,7 @@ void powermgrsetmode(struct wl_listener *listener, void *data) {
|
|||
|
||||
wlr_output_state_set_enabled(&m->pending, event->mode);
|
||||
mango_output_commit(m);
|
||||
m->only_dpms_off = !event->mode;
|
||||
m->only_sleep = !event->mode;
|
||||
updatemons(NULL, NULL);
|
||||
}
|
||||
|
||||
|
|
@ -6967,7 +6967,7 @@ void updatemons(struct wl_listener *listener, void *data) {
|
|||
m->wlr_output);
|
||||
config_head->state.enabled = 0;
|
||||
|
||||
if (m->only_dpms_off) {
|
||||
if (m->only_sleep) {
|
||||
continue;
|
||||
}
|
||||
/* Remove this output from the layout to avoid cursor enter inside
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue