From 30059e1fb5dc3373c0bef39080a69d614a20ba82 Mon Sep 17 00:00:00 2001 From: sabetts Date: Mon, 17 Sep 2001 01:03:49 +0000 Subject: * src/actions.c (update_all_gcs): new function (cmd_deffont): update the graphics contexts. * src/actions.c (spawn): Only call setsid if it exists. (spawn): Only call setpgid if it exists. (spawn): if setpgid doesn't exist, try setpgrp. --- src/actions.c | 49 +++++++++++++++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 18 deletions(-) (limited to 'src') diff --git a/src/actions.c b/src/actions.c index 8468f16..9b02e84 100644 --- a/src/actions.c +++ b/src/actions.c @@ -1506,6 +1506,36 @@ cmd_defbarloc (int interactive, void *data) return NULL; } +static void +update_gc (screen_info *s) +{ + XGCValues gv; + + gv.foreground = s->fg_color; + gv.background = s->bg_color; + gv.function = GXcopy; + gv.line_width = 1; + gv.subwindow_mode = IncludeInferiors; + gv.font = defaults.font->fid; + XFreeGC (dpy, s->normal_gc); + s->normal_gc = XCreateGC(dpy, s->root, + GCForeground | GCBackground + | GCFunction | GCLineWidth + | GCSubwindowMode | GCFont, &gv); +} + +static void +update_all_gcs () +{ + int i; + + for (i=0; ifg_color; - gv.background = s->bg_color; - gv.function = GXcopy; - gv.line_width = 1; - gv.subwindow_mode = IncludeInferiors; - gv.font = defaults.font->fid; - XFreeGC (dpy, s->normal_gc); - s->normal_gc = XCreateGC(dpy, s->root, - GCForeground | GCBackground - | GCFunction | GCLineWidth - | GCSubwindowMode | GCFont, &gv); -} - char * cmd_deffgcolor (int interactive, void *data) { -- cgit v1.2.3