aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2023-10-21 08:06:07 -0400
committerEli Zaretskii2023-10-21 08:06:07 -0400
commit52f25b791e686de4c8bf09aea63fba5b54137ae2 (patch)
tree8696af9a2daa0eee538b85750bbf5258ed0c621d /src
parent1b2083c2f3380400768a35fa3e665dcab209d0f1 (diff)
parentab9d6482e3b1835c3e1a835fb7edd51b61797bb3 (diff)
downloademacs-52f25b791e686de4c8bf09aea63fba5b54137ae2.tar.gz
emacs-52f25b791e686de4c8bf09aea63fba5b54137ae2.zip
Merge from origin/emacs-29
ab9d6482e3b ; Update ChangeLog.4 and etc/AUTHORS. d9e1605122b Correctly register focus events concomitant with alpha ch... 194e219825c * doc/man/emacsclient.1: Add missing options.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 517bdf57aab..5d491e63778 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -11820,7 +11820,9 @@ x_frame_highlight (struct frame *f)
11820 x_stop_ignoring_errors (dpyinfo); 11820 x_stop_ignoring_errors (dpyinfo);
11821 unblock_input (); 11821 unblock_input ();
11822 gui_update_cursor (f, true); 11822 gui_update_cursor (f, true);
11823 x_set_frame_alpha (f); 11823
11824 if (!FRAME_X_OUTPUT (f)->alpha_identical_p)
11825 x_set_frame_alpha (f);
11824} 11826}
11825 11827
11826static void 11828static void
@@ -11844,7 +11846,15 @@ x_frame_unhighlight (struct frame *f)
11844 unblock_input (); 11846 unblock_input ();
11845 11847
11846 gui_update_cursor (f, true); 11848 gui_update_cursor (f, true);
11847 x_set_frame_alpha (f); 11849
11850 /* Eschew modifying the frame alpha when the alpha values for
11851 focused and background frames are identical; otherwise, this will
11852 upset the order in which changes to the alpha property
11853 immediately subsequent to a focus change are propagated into a
11854 frame's alpha property. (bug#66398) */
11855
11856 if (!FRAME_X_OUTPUT (f)->alpha_identical_p)
11857 x_set_frame_alpha (f);
11848} 11858}
11849 11859
11850/* The focus has changed. Update the frames as necessary to reflect 11860/* The focus has changed. Update the frames as necessary to reflect