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
|
$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);
|