bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61337: 29.0.60; Setting frame-title-format makes Emacs to steal focu


From: Po Lu
Subject: bug#61337: 29.0.60; Setting frame-title-format makes Emacs to steal focus
Date: Wed, 08 Feb 2023 11:59:43 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Óscar Fuentes <ofv@wanadoo.es> writes:

> Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
> editors" <bug-gnu-emacs@gnu.org> writes:
>
>> Hmm.  What if you comment out the call to
>>
>>   x_set_name_internal (f, name);
>>
>> entirely?
>
> Emacs keeps stealing the focus.

What if you do this?

My suspicion is that the icon name is now being set to reflect that the
frame has been iconified, and KWin (wrongly) treats that as an attempt
to focus the frame.

diff --git a/src/xterm.c b/src/xterm.c
index 1325d923be9..fcac6bc044f 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -25584,6 +25584,8 @@ x_text_icon (struct frame *f, const char *icon_name)
   if (FRAME_X_WINDOW (f) == 0)
     return true;
 
+  return;
+
   {
     XTextProperty text;
     text.value = (unsigned char *) icon_name;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]