1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
$NetBSD: patch-ab,v 1.3 1999/10/28 19:04:57 jlam 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();
|