device-manager-evdev: Set and unset the stage for the main seat too
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 16 May 2018 10:55:15 +0000 (11:55 +0100)
committerSimon McVittie <smcv@debian.org>
Sun, 8 Jul 2018 10:32:56 +0000 (11:32 +0100)
commit9077f43cd2aa8fbbb3b5596d435d869b0f80a5b9
tree3e79c579d75888a86685c892f96e9d366d3b4db3
parent97766cdfcbe0ac9289331f851540ca60a94b2460
device-manager-evdev: Set and unset the stage for the main seat too

When no input devices are available on startup the device manager might be fast
enough to be constructed so that no default stage is set yet, and thus when
main seat virtual devices are created they won't have a proper stage set.
If then we plug a real device, the events that an input manager could generate
won't be associated to any stage and thus won't be processed.

We need then ensure that when we update the stage for the device manager we
(un)associate it also to the main seat devices.

(cherry picked from commit d7bdc1591fba5353b23a28ebf676da0e7b58c84e)

Origin: upstream, 3.28.3, commit:72965aaaf0b1c6cf098a0652e14dd3eb4c1501b8

Gbp-Pq: Name device-manager-evdev-Set-and-unset-the-stage-for-the-main.patch
clutter/clutter/evdev/clutter-device-manager-evdev.c