diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-06-21 22:18:23 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-06-21 22:18:23 +0200 |
commit | ab78e5687297ff5c27dc8b33e7d9f93a873af34f (patch) | |
tree | 7cc47a66a5408d8ccb73430b214c8aa703038ded /include/cursor.h | |
parent | 4bfb095f8d4250e94a64be53858f5d0544944999 (diff) |
Add -fm 'content' option to match fps to captured content, only x11 window capture currently supported
Diffstat (limited to 'include/cursor.h')
-rw-r--r-- | include/cursor.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/cursor.h b/include/cursor.h index b1ec6bd..2f26dfd 100644 --- a/include/cursor.h +++ b/include/cursor.h @@ -8,6 +8,7 @@ typedef struct { gsr_egl *egl; Display *display; int x_fixes_event_base; + int xi_opcode; unsigned int texture_id; vec2i size; @@ -15,12 +16,15 @@ typedef struct { vec2i position; bool cursor_image_set; + bool visible; + bool cursor_moved; } gsr_cursor; int gsr_cursor_init(gsr_cursor *self, gsr_egl *egl, Display *display); void gsr_cursor_deinit(gsr_cursor *self); -void gsr_cursor_update(gsr_cursor *self, XEvent *xev); +/* Returns true if the cursor image has updated or if the cursor has moved */ +bool gsr_cursor_update(gsr_cursor *self, XEvent *xev); void gsr_cursor_tick(gsr_cursor *self, Window relative_to); #endif /* GSR_CURSOR_H */ |