diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2026-01-04 21:41:39 -0700 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2026-01-04 21:41:39 -0700 |
| commit | 9637f06dd40418bd01cde0fe9f33d4fe979555ab (patch) | |
| tree | c41c136ed52aee4a4b74818531b05c55b938deb8 /rt/include | |
| parent | 5e86dbfa1bb30c8b1f36582e1a5229a208c5bff4 (diff) | |
| download | montis-9637f06dd40418bd01cde0fe9f33d4fe979555ab.tar.gz montis-9637f06dd40418bd01cde0fe9f33d4fe979555ab.tar.bz2 montis-9637f06dd40418bd01cde0fe9f33d4fe979555ab.zip | |
[refactor] Change dragging behavior to use the motion event.
Diffstat (limited to 'rt/include')
| -rw-r--r-- | rt/include/plugin.h | 2 | ||||
| -rw-r--r-- | rt/include/util.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/rt/include/plugin.h b/rt/include/plugin.h index 4146b37..d7ae18b 100644 --- a/rt/include/plugin.h +++ b/rt/include/plugin.h @@ -146,7 +146,7 @@ typedef struct PLUGIN { /* Absolute motion only for now; relative motion stays in the runtime. */ EXPORT(opqst_t (*plugin_handle_motion)( struct wlr_pointer_motion_absolute_event *event, uint32_t modifiers, - opqst_t state)); + double lx, double ly, opqst_t state)); /* * Handles a surface being mapped, unmapped or destroyed. diff --git a/rt/include/util.h b/rt/include/util.h index f7de541..b477113 100644 --- a/rt/include/util.h +++ b/rt/include/util.h @@ -6,7 +6,6 @@ * are intended for direct FFI use from the Haskell plugin. */ -void montis_plugin_get_cursor_position(void *ctx, double *x, double *y); void *montis_plugin_toplevel_at(void *ctx, double lx, double ly); void montis_plugin_get_toplevel_position(void *toplevel, double *x, double *y); void montis_plugin_set_toplevel_position(void *toplevel, double x, double y); |