Skip to content

backends/eis-client: Do not add device before adding EIS regions

Pascal Nowack requested to merge pnowack/mutter:fix-ei-multimonitor-fallout into main

Quoting the main commit here:

When a device is added, libei does not allow adding additional regions
for that particular device, as it is already advertised to the EI
client.
As a result, mutter currently effectively only adds the first region to
a device, but not the others.
This makes input in multi monitor sessions only possible on one monitor,
as the EI client cannot look up the other regions, since they were not
advertised to it.

Fix this situation by not adding and resuming the device, when a shared
device is used.
Instead, for shared devices, always add all regions first, and then
after that, add and resume the device.

@jadahl This fixes the input isses with multimonitor configs in remote desktop sessions.

Merge request reports

Loading