diff options
author | sghctoma <sghctoma@gmail.com> | 2018-08-30 11:15:39 +0200 |
---|---|---|
committer | sghctoma <sghctoma@gmail.com> | 2018-08-30 11:15:39 +0200 |
commit | 2bd6fbf20ebb055d4871ffb8eedefa7d7aa60ee8 (patch) | |
tree | adcf2c31beb7cff11cdc3e87232cff19e5af458e /xwayland/selection | |
parent | 633663cddefea5d66e2116573f39ec9aab9e12ab (diff) |
Fix that major(st_rdev) have no meaning on FreeBSD
The major device number does not indicate the device type on FreeBSD,
and AFAIK the only way to differentiate between DRM, input, and other
devices is checking the fd path. This commit implements that.
The drmDropmaster and drmSetmaster calls are necessary, because the
implicit drop (that should occur when the DRM fd is closed) seems not
to be working in some scenarios (e.g. if you have a tmux session
running - maybe the fd is retained somehow by tmux?). This is a
problem, because once you exit the compositor, you can't start it (or
any other program that wants to be DRM master) again until you close
all your tmux sessions.
Diffstat (limited to 'xwayland/selection')
0 files changed, 0 insertions, 0 deletions