chiark / gitweb /
logind: ignore lid switch if more than 1 display is connected
authorLennart Poettering <lennart@poettering.net>
Mon, 3 Mar 2014 18:30:16 +0000 (19:30 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 3 Mar 2014 18:32:43 +0000 (19:32 +0100)
commit6a79c58603ea816a1b4fa1520397b4e138bc1ca0
tree2300372efeda7924b759fffeb372b7c414c28b79
parentae833394d64e60edf558dec74c4780d88f788447
logind: ignore lid switch if more than 1 display is connected

Previously we expected the desktop environment to take an inhibitor
lock, but this opened a race on boot-up where logind might already be
running but no DE is active.

Hence, let's move checking for additional displays into logind. This
also opens up this logic for other DEs, given that only GNOME
implemented the inhibitor logic so far.
man/logind.conf.xml
src/login/logind-action.c
src/login/logind-core.c
src/login/logind.h