diff options
author | Max Kellermann <max@duempel.org> | 2008-11-27 18:05:28 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-27 18:05:28 +0100 |
commit | b512802eb2babc879a109d16ce4a32b2fb1c22ef (patch) | |
tree | a2e28c2541ebb03e0254ab0d2f18c6cf35286f7b /src/screen_play.c | |
parent | 45352152fbdcac20b39161069406ad6d5288bd98 (diff) | |
download | mpd-b512802eb2babc879a109d16ce4a32b2fb1c22ef.tar.gz mpd-b512802eb2babc879a109d16ce4a32b2fb1c22ef.tar.xz mpd-b512802eb2babc879a109d16ce4a32b2fb1c22ef.zip |
list_window: converted "flags" to one "bool" variable
Currently, there is only one known list_window flag ("hide_cursor").
Replace the "flags" bit field with a boolean variable. If we run out
of space some day, we can convert that to bool:1.
Diffstat (limited to 'src/screen_play.c')
-rw-r--r-- | src/screen_play.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screen_play.c b/src/screen_play.c index 7ee0a9ff4..5acde4568 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -396,7 +396,7 @@ timer_hide_cursor(gpointer data) /* hide the cursor when mpd is playing and the user is inactive */ if (c->status != NULL && c->status->state == MPD_STATUS_STATE_PLAY) { - lw->flags |= LW_HIDE_CURSOR; + lw->hide_cursor = true; playlist_repaint(); } else timer_hide_cursor_id = g_timeout_add(options.hide_cursor * 1000, @@ -414,7 +414,7 @@ play_open(mpdclient_t *c) assert(timer_hide_cursor_id == 0); if (options.hide_cursor > 0) { - lw->flags &= ~LW_HIDE_CURSOR; + lw->hide_cursor = false; timer_hide_cursor_id = g_timeout_add(options.hide_cursor * 1000, timer_hide_cursor, c); } @@ -530,7 +530,7 @@ handle_mouse_event(struct mpdclient *c) static bool play_cmd(mpdclient_t *c, command_t cmd) { - lw->flags &= ~LW_HIDE_CURSOR; + lw->hide_cursor = false; if (options.hide_cursor > 0) { if (timer_hide_cursor_id != 0) |