From 6ed013fc7cd6fb2b5d4bbb1d3e991f09e9a327f8 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Thu, 28 Jul 2011 00:10:36 +0200 Subject: [PATCH] Wmfs: Remove update_status and option --- src/wmfs.c | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/wmfs.c b/src/wmfs.c index 9a31876..269a456 100644 --- a/src/wmfs.c +++ b/src/wmfs.c @@ -356,19 +356,6 @@ set_statustext(int s, char *str) return; } -/** Update status script by ewmh hint - */ -static void -update_status(void) -{ - if(!check_wmfs_running()) - return; - - ewmh_send_message(ROOT, ROOT, "_WMFS_UPDATE_STATUS", 0, 0, 0, 0, True); - - return; -} - /** Signal handle function */ static void @@ -406,7 +393,7 @@ main(int argc, char **argv) all_argv = argv; sprintf(conf.confpath, "%s/"DEF_CONF, getenv("HOME")); - while((i = getopt(argc, argv, "hviSc:s:C:")) != -1) + while((i = getopt(argc, argv, "hvic:s:C:")) != -1) { /* For options who need WMFS running */ @@ -421,7 +408,6 @@ main(int argc, char **argv) " -C Load a configuration file\n" " -c Execute an uicb function to control WMFS\n" " -s Set the bar(s) statustext\n" - " -S Update status script\n" " -h Show this page\n" " -i Show informations\n" " -v Show WMFS version\n", argv[0]); @@ -438,12 +424,6 @@ main(int argc, char **argv) exit(EXIT_SUCCESS); break; - case 'S': - update_status(); - XCloseDisplay(dpy); - exit(EXIT_SUCCESS); - break; - case 'C': strncpy(conf.confpath, optarg, sizeof(conf.confpath)); break;