feat: support get scale by mmsg

This commit is contained in:
DreamMaoMao 2025-10-30 14:13:54 +08:00
parent 15354898c8
commit eedff5b085
4 changed files with 37 additions and 4 deletions

View file

@ -206,6 +206,12 @@ void dwl_ipc_output_printstatus_to(DwlIpcOutput *ipc_output) {
zdwl_ipc_output_v2_send_keymode(ipc_output->resource, keymode.mode);
}
if (wl_resource_get_version(ipc_output->resource) >=
ZDWL_IPC_OUTPUT_V2_SCALEFACTOR_SINCE_VERSION) {
zdwl_ipc_output_v2_send_scalefactor(ipc_output->resource,
monitor->wlr_output->scale * 100);
}
zdwl_ipc_output_v2_send_frame(ipc_output->resource);
}

View file

@ -5369,7 +5369,6 @@ void updatemons(struct wl_listener *listener, void *data) {
if ((c = focustop(m)) && c->isfullscreen)
resize(c, m->m, 0);
config_head->state.x = m->m.x;
config_head->state.y = m->m.y;