ref:630c57ceb72954b22311a542330aedc557d004cd

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

SHA: 630c57ceb72954b22311a542330aedc557d004cd
Author: michalzxc <dla_www_github.com@itaz.eu>
Date: 2026-03-06 23:34
Parents: 53f05d4
1 files changed +7 -0
Type
src/platform/linux/portalgrab.cpp +7 −0
@@ -1180,5 +1180,12 @@
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;
}