unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Ivan Popovych <ivan@ipvych.com>
Cc: 65919@debbugs.gnu.org
Subject: bug#65919: 29.1; build without xinput does not get focused when hovering over window
Date: Thu, 14 Sep 2023 19:04:20 +0800	[thread overview]
Message-ID: <87a5tp2eyz.fsf@yahoo.com> (raw)
In-Reply-To: <87fs3hrriy.fsf@ipvych.com> (Ivan Popovych's message of "Thu, 14 Sep 2023 13:13:57 +0300")

Ivan Popovych <ivan@ipvych.com> writes:

> Po Lu <luangruo@yahoo.com> writes:
>
>>
>> OK.  Does the problem vanish if you switch to a no toolkit or GTK 3
>> build?
>
> Build with no toolkit has no issue
>
> Configured using:
>  'configure
>  --prefix=/nix/store/zg0g00l2gyycf1xdl64j89sbnjrif62l-emacs-29.1
>  --disable-build-details --with-modules --with-x-toolkit=no --with-xft
>  --with-cairo --with-native-compilation --with-tree-sitter
>  --with-xinput2'
>
> Build with gtk3 has no issue
>
> Configured using:
>  'configure
>  --prefix=/nix/store/y35rnh7np5m538gmw6qcsr6wcwrw9ls5-emacs-gtk3-29.1
>  --disable-build-details --with-modules --with-x-toolkit=gtk3
>  --with-xft --with-cairo --with-native-compilation --with-tree-sitter
>  --with-xinput2 --with-xwidgets'

Thanks.  I guess the problem arises from the core window focus code used
under X toolkit builds.

Would you please instrument x_focus_changed as follows:

diff --git a/src/xterm.c b/src/xterm.c
index 11ccd5ebdb3..cff9b2537d5 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -12005,6 +12005,8 @@ XTtoggle_invisible_pointer (struct frame *f, bool invisible)
 x_focus_changed (int type, int state, struct x_display_info *dpyinfo,
 		 struct frame *frame, struct input_event *bufp)
 {
+  fprintf (stderr, "x_focus_changed: %d %d %p\n",
+	   type, state, (void *) frame);
   if (type == FocusIn)
     {
       if (dpyinfo->x_focus_event_frame != frame)

and send us whatever is printed to standard output after moving the
pointer within the frame?





  reply	other threads:[~2023-09-14 11:04 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-13  9:56 bug#65919: 29.1; build without xinput does not get focused when hovering over window Ivan Popovych via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-14  0:45 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-14  7:56 ` Ivan Popovych via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-14  8:47   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-14 10:13     ` Ivan Popovych via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-14 11:04       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-09-15  2:38         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-15  3:57           ` Amin Bandali
2023-09-15  4:37             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-15  5:02               ` Amin Bandali
2023-09-15  5:06               ` Stefan Kangas
2023-09-15  5:17                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-15  5:43                   ` Stefan Kangas
2023-09-15  6:07             ` Eli Zaretskii
2023-09-15  5:10           ` Bob Rogers
2023-09-15  5:18             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-15  9:54           ` Ivan Popovych via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-15 11:10             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87a5tp2eyz.fsf@yahoo.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=65919@debbugs.gnu.org \
    --cc=ivan@ipvych.com \
    --cc=luangruo@yahoo.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).