pkgsrc/x11/xdm3d/patches/patch-ad
dholland a6e7bebd79 Add a distfile patch kit to mop up legacy C. Will hopefully fix the
clang build. PKGREVISION -> 6.

Caution: while it builds, it does not build cleanly -- adding function
prototypes turned up some systemic issues.

If anyone uses this package it would be helpful to try building it
with -Wall and look in to how to fix things properly.
2013-06-16 17:32:06 +00:00

34 lines
1 KiB
Text

$NetBSD: patch-ad,v 1.3 2013/06/16 17:32:06 dholland Exp $
- ...?
--- greeter/greet.c.orig 1998-08-18 09:24:56.000000000 +0000
+++ greeter/greet.c
@@ -122,6 +124,9 @@ struct display *d;
d = (struct display *) closure;
+if (d->loginmoveInterval <= 0)
+ return;
+
scrn = XDefaultScreenOfDisplay(dpy);
/*
XtSetArg (args[0], XtNwidth, (XtArgVal) &width);
@@ -255,7 +260,7 @@ InitGreet (d)
0, 0, 0, 0,
XWidthOfScreen(scrn) / 2,
XHeightOfScreen(scrn) / 2);
- if (d->loginmoveInterval > -1)
+ if (d->loginmoveInterval > 0)
moveTimeout = XtAppAddTimeOut (context, d->loginmoveInterval*10000, time_test, (XtPointer) d);
if (d->pingInterval)
@@ -315,7 +320,7 @@ Greet (d, greet)
while (!done) {
XtAppNextEvent (context, &event);
/* by Amit Margalit 19-Apr-1997 */
- if(event.type == KeyPress)
+ if(moveTimeout && event.type == KeyPress)
{ /* reset the timeout as long as we type it stays in place */
XtMoveWidget(toplevel,orig_x,orig_y);
XtRemoveTimeOut(moveTimeout);