| 179 | } |
| 180 | |
| 181 | static void timeout_callback(int old_val, bool reset) { |
| 182 | if (conf.screen_conf.timeout[state.ac_state] <= 0) { |
| 183 | pause_screen(true, TIMEOUT, true); |
| 184 | } else { |
| 185 | pause_screen(false, TIMEOUT, false); |
| 186 | if (reset) { |
| 187 | reset_timer(screen_fd, old_val, conf.screen_conf.timeout[state.ac_state]); |
| 188 | } |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | static void pause_screen(bool pause, enum mod_pause type, bool reset_screen_br) { |
| 193 | if (CHECK_PAUSE(pause, type)) { |
no test coverage detected