New option: -N, set X window resource name

This commit is contained in:
Bert Münnich
2012-10-29 00:53:50 +01:00
parent 65d5d44696
commit 6f9b4f5b2e
5 changed files with 14 additions and 3 deletions

View File

@ -207,8 +207,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);