Diffusion KWin 99376d38f69f

udev: Only handle devices from the current seat

Authored by nerdopolist on Apr 5 2018, 5:47 PM.

Description

udev: Only handle devices from the current seat

Summary: This prevents the firstFound device, or any device detected by UdevEnumerate::find that is not from the same seat kwin is running under, from being handled

Test Plan:
made sure that kwin starts on a default udev (assuming a blank ID_SEAT attribute on a device means the device is on seat0)

added /dev/dri/card1 to seat1 and /dev/dri/card0 to seat0.
Start kwin with the drm-backend on seat0 and seat1, and make sure it starts on both instances

Reviewers: KWin, graesslin

Reviewed By: KWin, graesslin

Subscribers: rkflx, graesslin, kwin, KWin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D9553

Details

Committed
graesslinApr 5 2018, 5:47 PM
Reviewer
KWin
Differential Revision
D9553: udev: Only handle devices from the current seat
Parents
R108:7801afdd4c3d: udev: Add the ability to query the current framebuffer.
Branches
Unknown
Tags
Unknown