mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-07 10:20:46 +00:00
fix(linux/portal): set env_width/env_height so touch input works (#4822)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user