mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-06 06:46:54 -04:00
feat: ipc to get cursor position
This commit is contained in:
parent
fc13b0ff15
commit
83056027f2
3 changed files with 60 additions and 3 deletions
|
|
@ -211,6 +211,18 @@ void dwl_ipc_output_printstatus_to(DwlIpcOutput *ipc_output) {
|
|||
monitor->wlr_output->scale * 100);
|
||||
}
|
||||
|
||||
if (wl_resource_get_version(ipc_output->resource) >=
|
||||
ZDWL_IPC_OUTPUT_V2_CURSOR_X_SINCE_VERSION) {
|
||||
zdwl_ipc_output_v2_send_cursor_x(ipc_output->resource,
|
||||
(int32_t)cursor->x);
|
||||
}
|
||||
|
||||
if (wl_resource_get_version(ipc_output->resource) >=
|
||||
ZDWL_IPC_OUTPUT_V2_CURSOR_Y_SINCE_VERSION) {
|
||||
zdwl_ipc_output_v2_send_cursor_y(ipc_output->resource,
|
||||
(int32_t)cursor->y);
|
||||
}
|
||||
|
||||
zdwl_ipc_output_v2_send_frame(ipc_output->resource);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue