aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index b9970a6..179e9c6 100644
--- a/window.c
+++ b/window.c
@@ -208,8 +208,8 @@ void win_open(win_t *win) {
win_set_title(win, "sxiv");
- classhint.res_name = "sxiv";
classhint.res_class = "Sxiv";
+ classhint.res_name = options->res_name != NULL ? options->res_name : "sxiv";
XSetClassHint(e->dpy, win->xwin, &classhint);
XSetWMProtocols(e->dpy, win->xwin, &wm_delete_win, 1);