antiright-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Antiright-devel] antiright/src ACE wmar/wmar.c


From: Jeffrey Bedard
Subject: [Antiright-devel] antiright/src ACE wmar/wmar.c
Date: Thu, 23 Jun 2005 17:35:19 -0400

CVSROOT:        /cvsroot/antiright
Module name:    antiright
Branch:         
Changes by:     Jeffrey Bedard <address@hidden> 05/06/23 21:35:19

Modified files:
        src            : ACE 
        src/wmar       : wmar.c 

Log message:
        Commit before release.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/src/ACE.diff?tr1=1.41&tr2=1.42&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/src/wmar/wmar.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: antiright/src/ACE
diff -u antiright/src/ACE:1.41 antiright/src/ACE:1.42
--- antiright/src/ACE:1.41      Sat Jun 18 01:56:24 2005
+++ antiright/src/ACE   Thu Jun 23 21:35:19 2005
@@ -119,8 +119,8 @@
 
 wmAR()
 {
-    ./wmar xterm xload xcalc xclock ACE gaim firefox soffice emacs\
-       xmms xchat xmag afract xpdf xboard
+    wmar xterm xload xcalc xclock ACE gaim firefox soffice emacs\
+       xmms xchat xmag afract xpdf xboard xlock
 }
 
 KillJuke()
Index: antiright/src/wmar/wmar.c
diff -u antiright/src/wmar/wmar.c:1.2 antiright/src/wmar/wmar.c:1.3
--- antiright/src/wmar/wmar.c:1.2       Sat Jun 18 02:13:44 2005
+++ antiright/src/wmar/wmar.c   Thu Jun 23 21:35:19 2005
@@ -1,7 +1,31 @@
+/*
+  AntiRight
+  (c) 2003-2005 Jeffrey Bedard
+  address@hidden
+   
+  This file is part of AntiRight.
+   
+  AntiRight is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+   
+  AntiRight is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+   
+  You should have received a copy of the GNU General Public License
+  along with AntiRight; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*/
+
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
 #include <stdio.h>
 #include <string.h>
+#include <unistd.h>
+#include <stdlib.h>
 
 /* This is a debug marking function.  */
 #define ARBUG                                          \
@@ -101,14 +125,14 @@
   int dummy=0;
   char *wname=argv[0];
   XClassHint classHint;
-  XTextProperty name;
+  /*XTextProperty name;*/
   XGCValues    gcv;
   unsigned long        gcm;
   int done=0;
   XEvent event;
-  int item_counter, char_counter;
+  unsigned int item_counter, char_counter;
   
-  for(item_counter=1;item_counter<argc; item_counter++)
+  for(item_counter=1;item_counter<(unsigned int)argc; item_counter++)
     {
       for(char_counter=0;
          char_counter<strlen(argv[item_counter]); char_counter++)
@@ -205,7 +229,10 @@
                        if(event.xbutton.y>row_counter*8 &&
                           event.xbutton.y<row_counter*8+8)
                          {
-                           system(commands[counter]);
+                           char *command;
+                           asprintf(&command, "%s &", commands[counter]);
+                           system(command);
+                           free(command);
                          }
                      }
                  }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]