fix(linux/portal): set env_width/env_height so touch input works (#4822)

This commit is contained in:
michalzxc
2026-03-06 23:34:27 +00:00
committed by GitHub
parent 53f05d48b3
commit 630c57ceb7
+7
View File
@@ -1180,6 +1180,13 @@ namespace portal {
height = negotiated_h;
}
// Set env dimensions to match the captured display.
// Portal captures a single display, so the environment size equals the capture size.
// Without this, touch input is silently dropped because touch_port_t::operator bool()
// checks env_width and env_height are non-zero.
env_width = width;
env_height = height;
return 0;
}