summaryrefslogtreecommitdiff
path: root/abi/pardes_addon.h
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-26 10:44:54 -0300
committerGabriel Schneider <[email protected]>2026-11-26 10:44:54 -0300
commit8723462d8e02bc9d78b5004de38b910e83540575 (patch)
treef264bf364d41f3b334416618e973ec12cba0ddc9 /abi/pardes_addon.h
parent7911c53d5f08c7d8df3eb59061841daddb1d0e83 (diff)
parentf11b123a8f4c38b6582c03d2acf84143ed1e7fd3 (diff)
downloadpardes-8723462d8e02bc9d78b5004de38b910e83540575.tar.gz
pardes-8723462d8e02bc9d78b5004de38b910e83540575.zip
merge: M2's fix (dump.load resolves the chrome) + FP (PDF preview leaks, the spawn stop, PDF hits ABI 3.4)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'abi/pardes_addon.h')
-rw-r--r--abi/pardes_addon.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/abi/pardes_addon.h b/abi/pardes_addon.h
index d8257a0b..e467a239 100644
--- a/abi/pardes_addon.h
+++ b/abi/pardes_addon.h
@@ -37,7 +37,7 @@
/* Major in the high half: an addon of another major is refused. */
#define PA_ABI_MAJOR 3u
-#define PA_ABI_MINOR 3u
+#define PA_ABI_MINOR 4u
#define PA_ABI ((PA_ABI_MAJOR << 16) | PA_ABI_MINOR)
#define PA_OK 0
#define PA_RASTER_MAX (32u << 20) /* a placement's w*h*4 above this is dropped, said once */
@@ -83,6 +83,9 @@ typedef struct pa_window {
* `view`: the id of the view painted (pa_view's), whose layout paint
* draws; `glyphs`: it shows pictures as glyph art. */
uint8_t focused, view, glyphs, pad;
+ /* Since 3.4 (check api->abi): the theme's search hits, and the current
+ * one, as the body draws them (PA_RGB). */
+ uint32_t hit, hit_current;
} pa_window;
typedef struct pa_rect { uint32_t x, y, w, h; } pa_rect; /* pixels */
@@ -390,7 +393,7 @@ typedef struct pa_ops {
* copy of this header that disagrees does not compile. */
#if UINTPTR_MAX == 0xffffffffffffffffu
_Static_assert(sizeof(pa_cell) == 20, "pa_cell");
-_Static_assert(sizeof(pa_window) == 24, "pa_window");
+_Static_assert(sizeof(pa_window) == 32, "pa_window");
_Static_assert(sizeof(pa_rect) == 16 && sizeof(pa_cells) == 8, "pa_rect");
_Static_assert(sizeof(pa_placement) == 80, "pa_placement");
_Static_assert(sizeof(pa_paint) == 48 && sizeof(pa_view) == 32 && sizeof(pa_tick) == 128, "pa_paint");