Hans de Goede <[email protected]> writes: > When a fd is removed dev->state gets set to device_state_removed, > if the fd then gets re-added before InputThreadDoWork() deals with > the removal, the InputThreadDevice struct gets reused, but its > state would stay device_state_removed, so it would still get removed > on the first InputThreadDoWork() run, resulting in a non functioning > input device. > > This commit fixes this by (re-)setting dev->state to device_state_running > when a InputThreadDevice struct gets reused. > > This fixes input devices sometimes no longer working after a vt-switch. > > Signed-off-by: Hans de Goede <[email protected]>
Reviewed-by: Keith Packard <[email protected]> -- -keith
signature.asc
Description: PGP signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
