A tiling window manager

bar: After disabling barsticky, force an alarm reset

Otherwise the logic that determines whether to reset it is already
assuming the bar is not sticky and doesn't need a reset

See #24

+10 -7
+2
actions.c
··· 4611 4611 screen_update_frames(s); 4612 4612 } 4613 4613 4614 + bar_reset_alarm(); 4615 + 4614 4616 return cmdret_new(RET_SUCCESS, NULL); 4615 4617 } 4616 4618
+7 -7
bar.c
··· 73 73 int bar_type); 74 74 75 75 /* Reset the alarm to auto-hide the bar in BAR_TIMEOUT seconds. */ 76 - static void 77 - reset_alarm(void) 76 + void 77 + bar_reset_alarm(void) 78 78 { 79 79 struct timeval timeout; 80 80 struct itimerval alarmtimer; ··· 169 169 170 170 raise_utility_windows(); 171 171 172 - reset_alarm(); 172 + bar_reset_alarm(); 173 173 } 174 174 175 175 /* Show vscreen listing in bar. */ ··· 187 187 188 188 raise_utility_windows(); 189 189 190 - reset_alarm(); 190 + bar_reset_alarm(); 191 191 } 192 192 193 193 int ··· 951 951 marked_message(char *msg, int mark_start, int mark_end, int bar_type) 952 952 { 953 953 /* Schedule the bar to be hidden after some amount of time. */ 954 - reset_alarm(); 954 + bar_reset_alarm(); 955 955 marked_message_internal(msg, mark_start, mark_end, bar_type); 956 956 } 957 957 ··· 990 990 update_last_message(msg, mark_start, mark_end); 991 991 992 992 if (bar_type != BAR_IS_STICKY && bar_time_left()) 993 - reset_alarm(); 993 + bar_reset_alarm(); 994 994 } 995 995 996 996 /* ··· 1020 1020 show_last_message(void) 1021 1021 { 1022 1022 redraw_last_message(); 1023 - reset_alarm(); 1023 + bar_reset_alarm(); 1024 1024 } 1025 1025 1026 1026 /* Free any memory associated with the bar. */
+1
bar.h
··· 22 22 23 23 int bar_mkfifo(void); 24 24 void init_bar(void); 25 + void bar_reset_alarm(void); 25 26 void redraw_sticky_bar_text(int force); 26 27 void update_window_names(rp_screen *s, char *fmt); 27 28 void update_vscreen_names(rp_screen *s);