From ea8b68a3ce11ec2827f9c72686c66241f7e5bfee Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Mon, 18 Aug 2014 17:56:26 -0500 Subject: [PATCH] wmacpi: Bump to version 2.2a1. Source obtained from http://sourceforge.net/projects/wmacpi/files/. 2007 January 10 2.2a1 Added a patch from Patrice Dumas to support newer versions of libdockapp. Updated email address in AUTHORS and manpages. --- wmacpi/AUTHORS | 2 +- wmacpi/ChangeLog | 6 ++++++ wmacpi/wmacpi.1 | 4 ++-- wmacpi/wmacpi.c | 9 ++++++++- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/wmacpi/AUTHORS b/wmacpi/AUTHORS index 6f804d2..b04df42 100644 --- a/wmacpi/AUTHORS +++ b/wmacpi/AUTHORS @@ -1,4 +1,4 @@ -Simon Fowler +Simon Fowler Complete rewriting of the code from wmacpi-1.34. timecop diff --git a/wmacpi/ChangeLog b/wmacpi/ChangeLog index dfa719f..46925c6 100644 --- a/wmacpi/ChangeLog +++ b/wmacpi/ChangeLog @@ -1,3 +1,9 @@ +2007 January 10 2.2a1 + Added a patch from Patrice Dumas to support newer versions of + libdockapp. + + Updated email address in AUTHORS and manpages. + 2005 February 2 2.1 Finalised libdockapp-0.5.0 port - no changes from 2.1rc1. diff --git a/wmacpi/wmacpi.1 b/wmacpi/wmacpi.1 index 47c02c5..362606c 100644 --- a/wmacpi/wmacpi.1 +++ b/wmacpi/wmacpi.1 @@ -156,10 +156,10 @@ Display help. .SH AUTHOR .B wmacpi was originally written by Tim Copperfield , then -completely rewritten after 1.34 by Simon Fowler . +completely rewritten after 1.34 by Simon Fowler . .PP This manual page was originally written by Simon Richter for the Debian GNU/Linux system, and then updated by Simon Fowler. .br -Last modification by Simon Fowler , 2004-08-15. +Last modification by Simon Fowler , 2007-01-10. diff --git a/wmacpi/wmacpi.c b/wmacpi/wmacpi.c index 5d44550..622b36f 100644 --- a/wmacpi/wmacpi.c +++ b/wmacpi/wmacpi.c @@ -137,7 +137,14 @@ static void redraw_window(void) static void new_window(char *display, char *name, int argc, char **argv) { /* Initialise the dockapp window and appicon */ - DAInitialize(display, name, 64, 64, argc, argv); + /* we don't want libdocapp to parse the command line, but we have to + initialize it with DAParseArguments, so we set argc to 1 */ + DAParseArguments(1, argv, NULL, 0, + "help option done", "version option done"); + /* deprecated + DAInitialize(display, name, 64, 64, argc, argv); */ + DAOpenDisplay(display, argc, argv); + DACreateIcon(name, 64, 64, argc, argv); dockapp->display = DADisplay; dockapp->win = DAWindow;