fgui uses libcontrol, which defaults to hover-focus. This is both inconsistent with the rest of the system (bar acme) and potentially dangerous in fgui's specific case, due to the secrets involved. The following patch turns the libcontrol knob to switch to click-to-focus. Not sure this merits being merged per se, but it's at least here for anyone else to pick up. Attached as well since gmail will inevitably mangle it. - sam-d --- /mnt/git/object/40fc48cc7bd2bf10bb304e6d1212abcde6c15066/tree/sys/src/cmd/auth/factotum/fgui.c +++ sys/src/cmd/auth/factotum/fgui.c @@ -294,6 +294,7 @@ /* create a new control set for the confirmation */ openkmr(); cs = newcontrolset(screen, kbdc, mousec, resizec); + cs->clicktotype = 1; createtext(cs, "msg"); chanprint(cs->ctl, "msg image paleyellow"); @@ -534,6 +535,7 @@ /* create a new control set for the confirmation */ openkmr(); cs = newcontrolset(screen, kbdc, mousec, resizec); + cs->clicktotype = 1; /* count attributes and allocate entry controls */ entries = 0;