* bug#61719: 29.0.60; pgtk focus problem with Sway 1.7
@ 2023-02-22 22:12 Sean Whitton
2023-02-23 9:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-23 20:37 ` bug#61719: 29.1; pgtk focus problem with fcitx5 5.0.21 preedit Sean Whitton
0 siblings, 2 replies; 7+ messages in thread
From: Sean Whitton @ 2023-02-22 22:12 UTC (permalink / raw)
To: 61719; +Cc: luangruo
X-debbugs-cc: luangruo@yahoo.com
I just upgraded a workstation Debian bullseye->bookworm, which involved
an upgrade of the Sway Wayland compositor from 1.5 to 1.7. This appears
to have uncovered a bug in the pgtk build.
1. emacs -Q --bg-daemon=foo
2. emacsclient -sfoo -nc; sleep 5; emacsclient -sfoo -nc
After the second frame has opened, it seems that the first still has
keyboard focus for typing unmodified self-insert chars, but if you type
C-x, then neither of the frames receives the keypress.
I tried 'firefox -new-window; sleep 5; firefox -new-window', which is
also Wayland-native GTK, for comparison. The bug does not appear there.
--
Sean Whitton
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#61719: 29.0.60; pgtk focus problem with Sway 1.7
2023-02-22 22:12 bug#61719: 29.0.60; pgtk focus problem with Sway 1.7 Sean Whitton
@ 2023-02-23 9:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-24 4:52 ` Sean Whitton
2023-08-23 20:37 ` bug#61719: 29.1; pgtk focus problem with fcitx5 5.0.21 preedit Sean Whitton
1 sibling, 1 reply; 7+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-02-23 9:35 UTC (permalink / raw)
To: Sean Whitton; +Cc: 61719
Sean Whitton <spwhitton@spwhitton.name> writes:
> X-debbugs-cc: luangruo@yahoo.com
>
> I just upgraded a workstation Debian bullseye->bookworm, which involved
> an upgrade of the Sway Wayland compositor from 1.5 to 1.7. This appears
> to have uncovered a bug in the pgtk build.
>
> 1. emacs -Q --bg-daemon=foo
> 2. emacsclient -sfoo -nc; sleep 5; emacsclient -sfoo -nc
>
> After the second frame has opened, it seems that the first still has
> keyboard focus for typing unmodified self-insert chars, but if you type
> C-x, then neither of the frames receives the keypress.
>
> I tried 'firefox -new-window; sleep 5; firefox -new-window', which is
> also Wayland-native GTK, for comparison. The bug does not appear there.
Would you please run Emacs with ``WAYLAND_DEBUG=client'' and show the
print out around the time you create the new frame?
The output will be very verbose, but please send the entirety, and not
just what you think to be the problem. Thanks.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#61719: 29.0.60; pgtk focus problem with Sway 1.7
2023-02-23 9:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-02-24 4:52 ` Sean Whitton
2023-02-24 20:34 ` Sean Whitton
0 siblings, 1 reply; 7+ messages in thread
From: Sean Whitton @ 2023-02-24 4:52 UTC (permalink / raw)
To: Po Lu; +Cc: 61719
Hello,
On Thu 23 Feb 2023 at 05:35PM +08, Po Lu wrote:
> Sean Whitton <spwhitton@spwhitton.name> writes:
>
>> X-debbugs-cc: luangruo@yahoo.com
>>
>> I just upgraded a workstation Debian bullseye->bookworm, which involved
>> an upgrade of the Sway Wayland compositor from 1.5 to 1.7. This appears
>> to have uncovered a bug in the pgtk build.
>>
>> 1. emacs -Q --bg-daemon=foo
>> 2. emacsclient -sfoo -nc; sleep 5; emacsclient -sfoo -nc
>>
>> After the second frame has opened, it seems that the first still has
>> keyboard focus for typing unmodified self-insert chars, but if you type
>> C-x, then neither of the frames receives the keypress.
>>
>> I tried 'firefox -new-window; sleep 5; firefox -new-window', which is
>> also Wayland-native GTK, for comparison. The bug does not appear there.
>
> Would you please run Emacs with ``WAYLAND_DEBUG=client'' and show the
> print out around the time you create the new frame?
>
> The output will be very verbose, but please send the entirety, and not
> just what you think to be the problem. Thanks.
Hmm. I just restarted Sway and now I can't reproduce it, but before I
restarted it, I could reproduce it reliably.
I will keep trying every few hours and see.
--
Sean Whitton
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#61719: 29.0.60; pgtk focus problem with Sway 1.7
2023-02-24 4:52 ` Sean Whitton
@ 2023-02-24 20:34 ` Sean Whitton
2023-05-03 19:18 ` Sean Whitton
0 siblings, 1 reply; 7+ messages in thread
From: Sean Whitton @ 2023-02-24 20:34 UTC (permalink / raw)
To: Po Lu, 61719
Hello,
On Thu 23 Feb 2023 at 09:52PM -07, Sean Whitton wrote:
> On Thu 23 Feb 2023 at 05:35PM +08, Po Lu wrote:
>
>> Would you please run Emacs with ``WAYLAND_DEBUG=client'' and show the
>> print out around the time you create the new frame?
>>
>> The output will be very verbose, but please send the entirety, and not
>> just what you think to be the problem. Thanks.
>
> Hmm. I just restarted Sway and now I can't reproduce it, but before I
> restarted it, I could reproduce it reliably.
>
> I will keep trying every few hours and see.
Alright, I have reproduced it again now, twice. I am sending the logs
off-list just in case there are privacy implications; please do not post.
wayland_debug:
1. WAYLAND_DEBUG=client emacs -Q --fg-daemon=foo 2>tmp/wayland_debug &
2. emacsclient -sfoo -nc; sleep 5; emacsclient -sfoo -nc
3. Close both of the frames.
4. emacsclient -sfoo -nc
5. In this frame, C-x C-f worked, unlike in my initial report, but
self-insert chars didn't appear until I'd typed the key many times.
The self-insert chars don't appear in the terminal emulator that's
the previously selected window.
6. M-x kill-emacs
7. Repeated steps 4--6. Same result.
wayland_debug2:
1. WAYLAND_DEBUG=client emacs -Q --fg-daemon=foo 2>tmp/wayland_debug2 &
2. emacsclient -sfoo -nc; sleep 5; emacsclient -sfoo -nc
3. Close both of the frames.
4. emacsclient -sfoo -nc; sleep 5; emacsclient -sfoo -nc
5. Try to type into second frame.
In this case, C-x C-f didn't appear to work in the second frame.
When I tried to type it, the mode line changed to mode-line-inactive.
The other frame seems to have a "Find file:" prompt.
After a few seconds this prompt also appeared in the second frame.
6. M-x kill-emacs
Let me know if you want me to try some other variation.
Thanks!
--
Sean Whitton
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#61719: 29.0.60; pgtk focus problem with Sway 1.7
2023-02-24 20:34 ` Sean Whitton
@ 2023-05-03 19:18 ` Sean Whitton
2023-07-02 21:53 ` Sean Whitton
0 siblings, 1 reply; 7+ messages in thread
From: Sean Whitton @ 2023-05-03 19:18 UTC (permalink / raw)
To: Po Lu; +Cc: 61719
Hello Po,
On Fri 24 Feb 2023 at 01:34PM -07, Sean Whitton wrote:
> Alright, I have reproduced it again now, twice. I am sending the logs
> off-list just in case there are privacy implications; please do not
> post.
>
> [...]
Could I ask whether you've had any more thoughts on this bug?
(Po sent me a patch off-list in response to my logs but it did not
resolve the issue.)
--
Sean Whitton
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#61719: 29.0.60; pgtk focus problem with Sway 1.7
2023-05-03 19:18 ` Sean Whitton
@ 2023-07-02 21:53 ` Sean Whitton
0 siblings, 0 replies; 7+ messages in thread
From: Sean Whitton @ 2023-07-02 21:53 UTC (permalink / raw)
To: Po Lu; +Cc: 61719
Hello Po,
On Wed 03 May 2023 at 12:18PM -07, Sean Whitton wrote:
> Hello Po,
>
> On Fri 24 Feb 2023 at 01:34PM -07, Sean Whitton wrote:
>
>> Alright, I have reproduced it again now, twice. I am sending the logs
>> off-list just in case there are privacy implications; please do not
>> post.
>>
>> [...]
>
> Could I ask whether you've had any more thoughts on this bug?
>
> (Po sent me a patch off-list in response to my logs but it did not
> resolve the issue.)
I hope you won't mind me pinging you again about this. Have you had any
more thoughts?
Anyone who tries to use pgtk on the newly released Debian bookworm is
going to run into this, so it is probably worth getting it into Emacs 29.
--
Sean Whitton
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#61719: 29.1; pgtk focus problem with fcitx5 5.0.21 preedit
2023-02-22 22:12 bug#61719: 29.0.60; pgtk focus problem with Sway 1.7 Sean Whitton
2023-02-23 9:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-08-23 20:37 ` Sean Whitton
1 sibling, 0 replies; 7+ messages in thread
From: Sean Whitton @ 2023-08-23 20:37 UTC (permalink / raw)
To: Po Lu, 61719
control: retitle -1 29.1; pgtk focus problem with fcitx5 5.0.21 preedit
Hello,
I have determined that the problem is not with Sway but with fcitx5.
Environment to reproduce:
- fcitx5 5.0.21 from Debian bookworm
- enable "Show preedit in application" in fcitx5-config-qt
i.e. the problem can be worked around by disabling showing the preedit.
And as I said previously, the problem does not occur with fcitx5 5.0.5.
I don't know whether the bug is in our port or in fcitx5.
--
Sean Whitton
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-08-23 20:37 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-22 22:12 bug#61719: 29.0.60; pgtk focus problem with Sway 1.7 Sean Whitton
2023-02-23 9:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-24 4:52 ` Sean Whitton
2023-02-24 20:34 ` Sean Whitton
2023-05-03 19:18 ` Sean Whitton
2023-07-02 21:53 ` Sean Whitton
2023-08-23 20:37 ` bug#61719: 29.1; pgtk focus problem with fcitx5 5.0.21 preedit Sean Whitton
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).