]> git.ipfire.org Git - thirdparty/plymouth.git/commit
input-device: Only allow one renderer to consume input at a time
authorRay Strode <rstrode@redhat.com>
Tue, 29 Nov 2022 18:08:59 +0000 (13:08 -0500)
committerRay Strode <rstrode@redhat.com>
Tue, 29 Nov 2022 18:34:05 +0000 (13:34 -0500)
commitb6c8bf3be71e2770ae3ac885a134a050b8557487
tree51370e90e663d750b7f177ac890647f3ba22a373
parent5a9b24f18e551e1c058fac0557006b1cd5115a58
input-device: Only allow one renderer to consume input at a time

Right now if there are two graphics cards, there ends up with two
renderers active at the same time. Both process keyboard inputs
and both end up sending those events to plymouthd, resulting in
duplicate input.

This commit changes the input handlers so the first one wins, and
the rest don't get input.

Closes https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/197
src/libply-splash-core/ply-input-device.h
src/plugins/renderers/drm/plugin.c
src/plugins/renderers/frame-buffer/plugin.c