OSDN Git Service

kcontrol: remove check if lid is closed
authorIvailo Monev <xakepa10@gmail.com>
Thu, 28 Apr 2022 06:00:23 +0000 (09:00 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Thu, 28 Apr 2022 06:01:05 +0000 (09:01 +0300)
commit90d2eb50e685e6688e71d7b64f716c75f09e0cbf
tree7a021d10f56d7e7d1a8b144ecadd2c3e0a336058
parentb4d75d9552c51bf6eb3e8b4b21dd84b09598df9b
kcontrol: remove check if lid is closed

since the randr module methods are not D-Bus exported there is (normally)
no way for a user to interact with the action and trigger display switch,
the system may even be suspended while the lid is closed. there is also the
case where the laptop screen is not used (external monitor is used), lid is
closed, the system is not suspended and a switch has to happen from the
external monitor to the laptop screen because the external monitor is
unplugged. the check is just bogus for many cases

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kcontrol/randr/module/randrmonitor.cpp