summaryrefslogtreecommitdiff
path: root/time/asclock/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'time/asclock/patches/patch-ab')
-rw-r--r--time/asclock/patches/patch-ab60
1 files changed, 60 insertions, 0 deletions
diff --git a/time/asclock/patches/patch-ab b/time/asclock/patches/patch-ab
new file mode 100644
index 00000000000..ade79206969
--- /dev/null
+++ b/time/asclock/patches/patch-ab
@@ -0,0 +1,60 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/12/17 23:32:13 wiz Exp $
+
+--- asclock.c.orig Sat Sep 26 17:05:03 1998
++++ asclock.c Thu Oct 28 13:12:29 1999
+@@ -19,6 +19,7 @@
+ int ONLYSHAPE=0; /* default value is noshape */
+ int ITBLINKS=1; /* default is blinking */
+ int ICONIFIED=0; /* default is not iconified */
++int ITDOCKS=0; /* default is not Docking mode */
+ int YEAR=0; /* default is to show time, not year */
+ /* led positions *************************************************************/
+ int twelve[5] = {5, 14, 24, 28, 37};
+@@ -85,14 +86,15 @@
+ " -24 24 hour format",
+ " -exe <program> program to start on click",
+ " -led <color> color of the led",
+-" -monthxpm <xpm> month xpm",
+ " -clockxpm <xpm> clock xpm",
++" -monthxpm <xpm> month xpm",
+ " -weekdayxpm <xpm> weekday xpm",
++" -year show year instead of time",
+ " -position [+|-]x[+|-]y position of asclock",
+ " -shape without groundplate",
+ " -noblink don't blink",
+ " -iconic start up as icon",
+-" -year show year instead of time",
++" -dock Window Maker docking",
+ NULL
+ };
+
+@@ -173,6 +175,9 @@
+ case 'n':
+ ITBLINKS = 0;
+ continue;
++ case 'd':
++ ITDOCKS = 1;
++ continue;
+ case 'y':
+ YEAR = 1;
+ continue;
+@@ -256,13 +261,17 @@
+ XShapeCombineMask(dpy, iconwin, ShapeBounding, 0, 0, pixmask, ShapeSet);
+ }
+
+- mywmhints.initial_state = (ICONIFIED ? IconicState : NormalState);
++ mywmhints.initial_state = ITDOCKS ? WithdrawnState :
++ (ICONIFIED ? IconicState : NormalState);
+ mywmhints.icon_window = iconwin;
+ mywmhints.icon_x = mysizehints.x;
+ mywmhints.icon_y = mysizehints.y;
+- mywmhints.flags = StateHint | IconWindowHint | IconPositionHint;
++ mywmhints.window_group = win;
++ mywmhints.flags = StateHint | IconWindowHint | IconPositionHint
++ | WindowGroupHint;
+ XSetWMHints(dpy, win, &mywmhints);
+
++ XSetCommand(dpy, win, argv, argc);
+ XMapWindow(dpy,win);
+
+ InsertTime();