#49840 xnethack option to centre popup windows [PATCH]

#49840#5
Date:
1999-11-09 22:03:51 UTC
From:
To:
I use fvwm2 in click-to-type mode and just as a personal preference I
modified the X11 nethack to centre its popups over the main window
rather than over the mouse, so I can leave the mouse away to the side
when not in use.

Others using click-to-type might like this too, so here, as a
suggestion, is a patch which adds an option for this.

        cd nethack-3.2.2
        patch -p1 <centerpopups.diff

The option is an X resource NetHack*centerPopups and there's a
description of it added to debian/NetHack.ad.  By default it's
disabled, so the current behaviour is unchanged.

Also included is a one-line addition to wintext.c to let the keyboard
work on text popups (intro, rip, etc) without the mouse over them,
which is useful if they're not going to be positioned under the mouse.

While doing this I found NetHack*autofocus:true intereferes with
click-to-type.  (After the first popup the keyboard works in the main
window only if the mouse is over it.)  I added a line to NetHack.ad
about this.

#49840#10
Date:
1999-11-11 00:08:19 UTC
From:
To:
Thanks, Kevin, I've forwarded your patch upstream.
#49840#13
Date:
1999-11-11 00:08:08 UTC
From:
To:
Hi, Nethack developers! Here's a patch to add centering of popup
windows to X nethack.

Ben

#49840#14
Date:
1999-12-10 05:50:14 UTC
From:
To:
Thank you for the patch.  I tried it out and was having some problems with
it -- I'm crashing on my Solaris 7 machine.  It has been defered until after
the next release, which we have been promising before the end of the year.

Dean