1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-14 04:46:36 +01:00

Use enum to identify window types instead of bool variables

This commit is contained in:
jfreegman
2020-11-09 17:01:22 -05:00
parent 4188b392cc
commit 71d7d355a6
11 changed files with 30 additions and 25 deletions

View File

@@ -334,7 +334,7 @@ bool input_handle(ToxWindow *self, wint_t key, int x, int mx_x)
maybe convert entire function to if/else and make them all customizable keys? */
if (!match) {
if (key == user_settings->key_toggle_peerlist) {
if (self->is_conference) {
if (self->type == WINDOW_TYPE_CONFERENCE) {
self->show_peerlist ^= 1;
redraw_conference_win(self);
}