public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Hannes Domani <ssbssa@yahoo.de>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH 1/3] Refactor keypad calls to tui_set_win_focus_to
Date: Thu, 17 Jun 2021 14:54:49 +0000 (UTC)	[thread overview]
Message-ID: <825092844.1776394.1623941689401@mail.yahoo.com> (raw)
In-Reply-To: <20210607163003.621-1-ssbssa@yahoo.de>

 This series is no longer useful, Pedro fixed the mouse problems in a much
better way.


Hannes


Am Montag, 7. Juni 2021, 18:30:55 MESZ hat Hannes Domani via Gdb-patches <gdb-patches@sourceware.org> Folgendes geschrieben:

> Previously it always was called after tui_set_win_focus_to, except it was
> missing in tui_apply_current_layout.
>
> gdb/ChangeLog:
>
> 2021-06-07  Hannes Domani  <ssbssa@yahoo.de>
>
>     * tui/tui-data.c (tui_set_win_focus_to): Add keypad call.
>     * tui/tui-win.c (tui_set_focus_command): Remove keypad call.
>     * tui/tui.c (tui_rl_other_window): Likewise.
>     (tui_enable): Likewise.
> ---
> gdb/tui/tui-data.c | 5 +++++
> gdb/tui/tui-win.c  | 1 -
> gdb/tui/tui.c      | 2 --
> 3 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c
> index 691459abe2a..89afdb429ba 100644
> --- a/gdb/tui/tui-data.c
> +++ b/gdb/tui/tui-data.c
> @@ -22,6 +22,7 @@
> #include "defs.h"
> #include "symtab.h"
> #include "tui/tui.h"
> +#include "tui/tui-command.h"
> #include "tui/tui-data.h"
> #include "tui/tui-win.h"
> #include "tui/tui-wingeneral.h"
> @@ -69,6 +70,10 @@ tui_set_win_focus_to (struct tui_win_info *win_info)
>       tui_unhighlight_win (win_with_focus);
>       win_with_focus = win_info;
>       tui_highlight_win (win_info);
> +
> +      /* Enable the keypad if any window except the command window has
> +    the focus.  */
> +      keypad (TUI_CMD_WIN->handle.get (), win_info != TUI_CMD_WIN);
>     }
> }
>
> diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
> index 4e75a66a00e..094b503eae8 100644
> --- a/gdb/tui/tui-win.c
> +++ b/gdb/tui/tui-win.c
> @@ -703,7 +703,6 @@ tui_set_focus_command (const char *arg, int from_tty)
>     error (_("Window \"%s\" is not visible"), arg);
>
>   tui_set_win_focus_to (win_info);
> -  keypad (TUI_CMD_WIN->handle.get (), win_info != TUI_CMD_WIN);
>   printf_filtered (_("Focus set to %s window.\n"),
>           tui_win_with_focus ()->name ());
> }
> diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
> index 529fc62c9ac..394c357cebb 100644
> --- a/gdb/tui/tui.c
> +++ b/gdb/tui/tui.c
> @@ -181,7 +181,6 @@ tui_rl_other_window (int count, int key)
>   if (win_info)
>     {
>       tui_set_win_focus_to (win_info);
> -      keypad (TUI_CMD_WIN->handle.get (), win_info != TUI_CMD_WIN);
>     }
>   return 0;
> }
> @@ -439,7 +438,6 @@ tui_enable (void)
>       tui_show_frame_info (0);
>       tui_set_initial_layout ();
>       tui_set_win_focus_to (TUI_SRC_WIN);
> -      keypad (TUI_CMD_WIN->handle.get (), TRUE);
>       wrefresh (TUI_CMD_WIN->handle.get ());
>       tui_finish_init = false;
>     }
> --
> 2.31.1

      parent reply	other threads:[~2021-06-17 14:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210607163003.621-1-ssbssa.ref@yahoo.de>
2021-06-07 16:30 ` Hannes Domani
2021-06-07 16:30   ` [PATCH 2/3] Disable mouse events if the command window has focos Hannes Domani
2021-06-07 16:30   ` [PATCH 3/3] Add setting to enable/disable TUI mouse handling Hannes Domani
2021-06-07 16:49     ` Eli Zaretskii
2021-06-17 14:54   ` Hannes Domani [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=825092844.1776394.1623941689401@mail.yahoo.com \
    --to=ssbssa@yahoo.de \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).