Wmfs: Improve uicb_reload: Reload binary now.

This commit is contained in:
Martin Duquesnoy 2009-04-23 17:40:20 +02:00
parent 8e10f82c23
commit 4ff2c4a353
2 changed files with 7 additions and 10 deletions

View File

@ -237,18 +237,12 @@ scan(void)
void
uicb_reload(uicb_t cmd)
{
quit();
XCloseDisplay(dpy);
XSetErrorHandler(errorhandlerdummy);
for(; argv_global[0] && argv_global[0] == ' '; argv_global++);
XftFontClose(dpy, font);
infobar_destroy();
init();
scan();
XSetErrorHandler(errorhandler);
mainloop();
raise(SIGTERM);
execlp(argv_global, argv_global, NULL);
return;
}
@ -384,6 +378,8 @@ main(int argc, char **argv)
int i;
struct sigaction sig;
argv_global = _strdup(argv[0]);
while ((i = getopt(argc, argv, "hvic:s:")) != -1)
{
if(i == 'c' || i == 's')

View File

@ -318,6 +318,7 @@ char *statustext;
XRectangle *sgeo;
XRectangle *spgeo;
Cursor cursor[CurLast];
char *argv_global;
/* Fonts */
XftFont *font;