From 672aedc1a6495da6123ad70b4cc77dbbedc100a3 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 5 Jun 2016 05:30:38 -0400 Subject: allow more easily running a development version alongside a real one this just changes the window class (so that i can make the development version use floating windows while not screwing up the layout for my real terminals) and the runesd socket location (so that i can test runesd at all while i'm already running a real runesd). --- src/window-xlib.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/window-xlib.c') diff --git a/src/window-xlib.c b/src/window-xlib.c index be79cbe..99d2c09 100644 --- a/src/window-xlib.c +++ b/src/window-xlib.c @@ -145,7 +145,7 @@ void runes_window_create_window(RunesTerm *t, int argc, char *argv[]) { RunesWindow *w = t->w; pid_t pid; - XClassHint class_hints = { "runes", "runes" }; + XClassHint class_hints = { RUNES_PROGRAM_NAME, RUNES_PROGRAM_NAME }; XWMHints wm_hints; XSizeHints normal_hints; double bg_r, bg_g, bg_b; @@ -203,7 +203,8 @@ void runes_window_create_window(RunesTerm *t, int argc, char *argv[]) w->wb->dpy, w->border_w, w->wb->atoms, RUNES_NUM_PROTOCOL_ATOMS); Xutf8SetWMProperties( - w->wb->dpy, w->border_w, "runes", "runes", argv, argc, + w->wb->dpy, w->border_w, RUNES_PROGRAM_NAME, RUNES_PROGRAM_NAME, + argv, argc, &normal_hints, &wm_hints, &class_hints); pid = getpid(); @@ -211,8 +212,8 @@ void runes_window_create_window(RunesTerm *t, int argc, char *argv[]) w->wb->dpy, w->border_w, w->wb->atoms[RUNES_ATOM_NET_WM_PID], XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&pid, 1); - runes_window_set_icon_name(t, "runes", 5); - runes_window_set_window_title(t, "runes", 5); + runes_window_set_icon_name(t, RUNES_PROGRAM_NAME, 5); + runes_window_set_window_title(t, RUNES_PROGRAM_NAME, 5); cursor = XCreateFontCursor(w->wb->dpy, XC_xterm); cairo_pattern_get_rgba( -- cgit v1.2.3-54-g00ecf