df7948804e
misc/cal, misc/cardboard-schedule, misc/ical, misc/plan, misc/py-mxDateTime, misc/remind, sysutils/logtime, and 19 more from x11.
60 lines
2.1 KiB
Text
60 lines
2.1 KiB
Text
$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();
|