mhiretskiy
commit
fc79e1c805
@ -0,0 +1,31 @@
|
||||
# Calculate format=diff
|
||||
diff --git a/src/xfpm-manager.c b/src/xfpm-manager.c
|
||||
index e9acaa0..05e9964 100644
|
||||
--- a/src/xfpm-manager.c
|
||||
+++ b/src/xfpm-manager.c
|
||||
@@ -441,12 +441,11 @@ xfpm_manager_lid_changed_cb (XfpmPower *power, gboolean lid_is_closed, XfpmManag
|
||||
{
|
||||
XFPM_DEBUG_ENUM (action, XFPM_TYPE_LID_TRIGGER_ACTION, "LID close event");
|
||||
|
||||
- if ( action == LID_TRIGGER_NOTHING )
|
||||
- {
|
||||
- if ( !xfpm_is_multihead_connected () )
|
||||
- xfpm_dpms_force_level (manager->priv->dpms, DPMSModeOff);
|
||||
- }
|
||||
- else if ( action == LID_TRIGGER_LOCK_SCREEN )
|
||||
+ if ( action != LID_TRIGGER_NOTHING ) {
|
||||
+ if ( !xfpm_is_multihead_connected () )
|
||||
+ xfpm_dpms_force_level (manager->priv->dpms, DPMSModeOff);
|
||||
+ }
|
||||
+ if ( action == LID_TRIGGER_LOCK_SCREEN )
|
||||
{
|
||||
if ( !xfpm_is_multihead_connected () )
|
||||
{
|
||||
@@ -466,6 +463,7 @@ xfpm_manager_lid_changed_cb (XfpmPower *power, gboolean lid_is_closed, XfpmManag
|
||||
* user for confirmation in case of an application is inhibiting
|
||||
* the power manager.
|
||||
*/
|
||||
+ g_usleep (1000000);
|
||||
xfpm_manager_sleep_request (manager, action, TRUE);
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="7"
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
|
||||
declare -A CALCULATE_MODULES=(
|
||||
["lib"]="3.6.9.6"
|
||||
["install"]="3.6.9.12"
|
||||
["client"]="3.6.9.9"
|
||||
["desktop"]="3.6.9.2"
|
||||
["update"]="3.6.9.1"
|
||||
["builder"]="3.6.9.1"
|
||||
)
|
||||
|
||||
inherit calculate-utils-r12
|
||||
|
||||
DESCRIPTION="A set of Calculate utilities for system installation, build and upgrade"
|
||||
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate_utilities"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3"
|
||||
KEYWORDS="amd64"
|
||||
|
Loading…
Reference in new issue