aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Möllmann2025-02-02 05:39:47 +0100
committerGerd Möllmann2025-02-02 05:44:39 +0100
commit42f1318e6579f94b90ef101f3f03ca65fb229262 (patch)
tree162aa3ae3397f228b41b4276e649710c0d1e31a9 /src
parentc91c591f0f0cc774647c32bdcf05bb3a9551e340 (diff)
downloademacs-42f1318e6579f94b90ef101f3f03ca65fb229262.tar.gz
emacs-42f1318e6579f94b90ef101f3f03ca65fb229262.zip
Fix hiding tty cursor for overlapping children
* src/dispnew.c (is_cursor_obscured): If selected frame is in the z-order of the root frame, use that, otherwise use the root frame.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 35c8d347616..c062ea42f3d 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -3909,10 +3909,12 @@ frame_selected_window_frame (struct frame *f)
3909static bool 3909static bool
3910is_cursor_obscured (struct frame *root) 3910is_cursor_obscured (struct frame *root)
3911{ 3911{
3912 /* Determine in which frame on ROOT the cursor could be. */ 3912 /* Which frame contains the cursor? If the selected frame is in
3913 struct frame *sf = frame_selected_window_frame (root); 3913 root's z-order, it's the selected frame. Otherwise fall back to
3914 if (sf == NULL) 3914 the root itself. */
3915 return false; 3915 struct frame *sf = (frame_ancestor_p (root, SELECTED_FRAME ())
3916 ? SELECTED_FRAME ()
3917 : root);
3916 3918
3917 /* Give up if we can't tell where the cursor currently is. */ 3919 /* Give up if we can't tell where the cursor currently is. */
3918 int x, y; 3920 int x, y;