Fix window title for minimized windows not being updated

Fixes #1332
This commit is contained in:
Kovid Goyal 2019-01-24 21:04:26 +05:30
parent 60b64dadfe
commit 22c65c5d03
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 14 additions and 1 deletions

View File

@ -14,6 +14,8 @@ Changelog
- Fix using remote control to set cursor text color causing errors when - Fix using remote control to set cursor text color causing errors when
creating new windows (:iss:`1326`) creating new windows (:iss:`1326`)
- Fix window title for minimized windows not being updated (:iss:`1332`)
0.13.3 [2019-01-19] 0.13.3 [2019-01-19]
------------------------------ ------------------------------

View File

@ -631,6 +631,13 @@ render_os_window(OSWindow *os_window, double now, unsigned int active_window_id,
#undef TD #undef TD
} }
static inline void
update_os_window_title(OSWindow *os_window) {
Tab *tab = os_window->tabs + os_window->active_tab;
Window *w = tab->windows + tab->active_window;
update_window_title(w, os_window);
}
static inline void static inline void
render(double now) { render(double now) {
double time_since_last_render = now - last_render_at; double time_since_last_render = now - last_render_at;
@ -641,7 +648,11 @@ render(double now) {
for (size_t i = 0; i < global_state.num_os_windows; i++) { for (size_t i = 0; i < global_state.num_os_windows; i++) {
OSWindow *w = global_state.os_windows + i; OSWindow *w = global_state.os_windows + i;
if (!w->num_tabs || !should_os_window_be_rendered(w)) continue; if (!w->num_tabs) continue;
if (!should_os_window_be_rendered(w)) {
update_os_window_title(w);
continue;
}
if (global_state.is_wayland && w->wayland_render_state != RENDER_FRAME_READY && OPT(sync_to_monitor)) { if (global_state.is_wayland && w->wayland_render_state != RENDER_FRAME_READY && OPT(sync_to_monitor)) {
if (w->wayland_render_state == RENDER_FRAME_NOT_REQUESTED) wayland_request_frame_render(w); if (w->wayland_render_state == RENDER_FRAME_NOT_REQUESTED) wayland_request_frame_render(w);
continue; continue;