patches: fix two more compile errors
- Remove f->child_frame_list (field does not exist in struct frame) - Fix dangling else-if after goto label (skip_overlay_scan)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 19ab5ca41d38959b8f92ae2e1b7f724972515c3d Mon Sep 17 00:00:00 2001
|
||||
From 8ef9b7f50f9ebb1c23e8e8bf2b5158e073b35e37 Mon Sep 17 00:00:00 2001
|
||||
From: Martin Sukany <martin@sukany.cz>
|
||||
Date: Sat, 28 Feb 2026 22:39:35 +0100
|
||||
Subject: [PATCH 1/9] ns: integrate with macOS Zoom for cursor tracking
|
||||
@@ -38,8 +38,8 @@ window splits, switches (C-x o), and completion frameworks.
|
||||
---
|
||||
etc/NEWS | 11 ++
|
||||
src/nsterm.h | 6 ++
|
||||
src/nsterm.m | 289 +++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
3 files changed, 306 insertions(+)
|
||||
src/nsterm.m | 287 +++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
3 files changed, 304 insertions(+)
|
||||
|
||||
diff --git a/etc/NEWS b/etc/NEWS
|
||||
index ef36df5..80661a9 100644
|
||||
@@ -81,10 +81,10 @@ index 7c1ee4c..ea6e7ba 100644
|
||||
}
|
||||
|
||||
diff --git a/src/nsterm.m b/src/nsterm.m
|
||||
index 74e4ad5..eee4cd9 100644
|
||||
index 74e4ad5..f7875b3 100644
|
||||
--- a/src/nsterm.m
|
||||
+++ b/src/nsterm.m
|
||||
@@ -1081,6 +1081,218 @@ static NSRect constrain_frame_rect(NSRect frameRect, bool isFullscreen)
|
||||
@@ -1081,6 +1081,216 @@ static NSRect constrain_frame_rect(NSRect frameRect, bool isFullscreen)
|
||||
}
|
||||
|
||||
|
||||
@@ -266,9 +266,7 @@ index 74e4ad5..eee4cd9 100644
|
||||
+
|
||||
+ /* 2. Check child frame completions (Corfu, Company-box). */
|
||||
+ struct frame *cf = NULL;
|
||||
+ int cf_line = -1;
|
||||
+ if (!NILP (f->child_frame_list))
|
||||
+ cf_line = ns_zoom_find_child_frame_candidate (f, &cf);
|
||||
+ int cf_line = ns_zoom_find_child_frame_candidate (f, &cf);
|
||||
+ if (cf_line >= 0 && cf)
|
||||
+ {
|
||||
+ EmacsView *cv = FRAME_NS_VIEW (cf);
|
||||
@@ -303,7 +301,7 @@ index 74e4ad5..eee4cd9 100644
|
||||
static void
|
||||
ns_update_end (struct frame *f)
|
||||
/* --------------------------------------------------------------------------
|
||||
@@ -1104,6 +1316,41 @@ static NSRect constrain_frame_rect(NSRect frameRect, bool isFullscreen)
|
||||
@@ -1104,6 +1314,41 @@ static NSRect constrain_frame_rect(NSRect frameRect, bool isFullscreen)
|
||||
|
||||
unblock_input ();
|
||||
ns_updating_frame = NULL;
|
||||
@@ -345,7 +343,7 @@ index 74e4ad5..eee4cd9 100644
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -3232,6 +3479,45 @@ Note that CURSOR_WIDTH is meaningful only for (h)bar cursors.
|
||||
@@ -3232,6 +3477,45 @@ Note that CURSOR_WIDTH is meaningful only for (h)bar cursors.
|
||||
/* Prevent the cursor from being drawn outside the text area. */
|
||||
r = NSIntersectionRect (r, ns_row_rect (w, glyph_row, TEXT_AREA));
|
||||
|
||||
@@ -391,7 +389,7 @@ index 74e4ad5..eee4cd9 100644
|
||||
ns_focus (f, NULL, 0);
|
||||
|
||||
NSGraphicsContext *ctx = [NSGraphicsContext currentContext];
|
||||
@@ -8321,6 +8607,9 @@ - (instancetype) initFrameFromEmacs: (struct frame *)f
|
||||
@@ -8321,6 +8605,9 @@ - (instancetype) initFrameFromEmacs: (struct frame *)f
|
||||
|
||||
windowClosing = NO;
|
||||
processingCompose = NO;
|
||||
|
||||
Reference in New Issue
Block a user