| Summary: | [PATCH] gnome-terminal starts up in secure-keyboard mode | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | ajk <ajk> | ||||
| Component: | Individual Port(s) | Assignee: | Ade Lovett <ade> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | CC: | ade | ||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
ajk
2000-01-20 15:50:00 UTC
Responsible Changed From-To: freebsd-ports->ade My port - I'll handle it On Thu, Jan 20, 2000 at 10:40:50AM -0500, ajk@waterspout.com wrote: > > When gnome-terminal starts up, it immediately grabs the keyboard > so that the user can't type into any other X application. I believe a more appropriate patch would be as follows: --- gnome-terminal.c Thu Jan 20 16:59:30 2000 +++ gnome-terminal.c.new Thu Jan 20 17:00:49 2000 @@ -480,6 +480,7 @@ cfg->color_type = PALETTE_CUSTOM; else cfg->color_type = PALETTE_LINUX; + cfg->keyboard_secured = gnome_config_get_bool ("keyboard_secured=0"); cfg->bell = gnome_config_get_bool ("bell_silenced=0"); cfg->blink = gnome_config_get_bool ("blinking=0"); cfg->swap_keys = gnome_config_get_bool ("swap_del_and_backspace=0"); @@ -995,6 +996,7 @@ gnome_config_set_string ("scrollpos", cfg->scrollbar_position == SCROLLBAR_LEFT ? "left" : cfg->scrollbar_position == SCROLLBAR_RIGHT ? "right" : "hidden"); + gnome_config_set_bool ("keyboard_secured", cfg->keyboard_secured); gnome_config_set_bool ("bell_silenced", cfg->bell); gnome_config_set_bool ("blinking", cfg->blink); gnome_config_set_bool ("swap_del_and_backspace", cfg->swap_keys); Allowing for the behavior to be stored in the Terminal configuration file, rather than simply forcibly setting it off, which may not be what is required. Please let me know what you think. -aDe -- Ade Lovett, Austin, TX. > On Thu, Jan 20, 2000 at 10:40:50AM -0500, ajk@waterspout.com wrote:
> >
> > When gnome-terminal starts up, it immediately grabs the keyboard
> > so that the user can't type into any other X application.
>
> I believe a more appropriate patch would be as follows:
>
> --- gnome-terminal.c Thu Jan 20 16:59:30 2000
> +++ gnome-terminal.c.new Thu Jan 20 17:00:49 2000
> @@ -480,6 +480,7 @@
> cfg->color_type = PALETTE_CUSTOM;
> else
> cfg->color_type = PALETTE_LINUX;
> + cfg->keyboard_secured = gnome_config_get_bool ("keyboard_secured=0");
> cfg->bell = gnome_config_get_bool ("bell_silenced=0");
> cfg->blink = gnome_config_get_bool ("blinking=0");
> cfg->swap_keys = gnome_config_get_bool ("swap_del_and_backspace=0");
> @@ -995,6 +996,7 @@
> gnome_config_set_string ("scrollpos",
> cfg->scrollbar_position == SCROLLBAR_LEFT ? "l
> eft" :
> cfg->scrollbar_position == SCROLLBAR_RIGHT ? "
> right" : "hidden");
> + gnome_config_set_bool ("keyboard_secured", cfg->keyboard_secured);
> gnome_config_set_bool ("bell_silenced", cfg->bell);
> gnome_config_set_bool ("blinking", cfg->blink);
> gnome_config_set_bool ("swap_del_and_backspace", cfg->swap_keys);
>
> Allowing for the behavior to be stored in the Terminal configuration
> file, rather than simply forcibly setting it off, which may not be
> what is required.
I thought about that and couldn't think why one would want it to
be configurable that way, but I suppose it is more general.
Actually, I don't know why anyone would use the feature what with
SSH and XAUTH.
ajk
State Changed From-To: open->closed Update committed (with modifications), thanks! |