aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index eba35aa..227d0ee 100644
--- a/main.c
+++ b/main.c
@@ -214,6 +214,9 @@ int main(int argc, char** argv)
remove_current_path();
} else {
g_path.changed = 0;
+ char title[128];
+ snprintf(&title[0], sizeof(title), "imv - %s", g_path.cur->path);
+ SDL_SetWindowTitle(g_window, (const char*)&title);
reset_view();
}
}