ssuominen    14/09/16 11:12:16

  Added:               
                        xfce4-power-manager-1.4.0-fix-handle-lid-switch.patch
  Log:
  Version bump.
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
4868F14D)

Revision  Changes    Path
1.1                  
xfce-extra/xfce4-power-manager/files/xfce4-power-manager-1.4.0-fix-handle-lid-switch.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/xfce-extra/xfce4-power-manager/files/xfce4-power-manager-1.4.0-fix-handle-lid-switch.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/xfce-extra/xfce4-power-manager/files/xfce4-power-manager-1.4.0-fix-handle-lid-switch.patch?rev=1.1&content-type=text/plain

Index: xfce4-power-manager-1.4.0-fix-handle-lid-switch.patch
===================================================================
http://bugzilla.xfce.org/show_bug.cgi?id=11160

>From d61db320d8a893a292812256470a873c7ce1b35d Mon Sep 17 00:00:00 2001
From: Eric Koegel <[email protected]>
Date: Mon, 15 Sep 2014 14:35:00 +0300
Subject: [PATCH] Fix handle lid switch with loginD (Bug 11160)

The xfconf settings logic for logind interactions were inverted
in commit: 03193df6cad651841e8d9960335b4a3bf13afdad
However the handle lid switch in the xfpm_manager_lid_changed_cb
also needs to be inverted. This patch fixes it. Patch submitted
by Simon P.
---
 src/xfpm-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfpm-manager.c b/src/xfpm-manager.c
index d6c533c..9549b66 100644
--- a/src/xfpm-manager.c
+++ b/src/xfpm-manager.c
@@ -335,7 +335,7 @@ xfpm_manager_lid_changed_cb (XfpmPower *power, gboolean 
lid_is_closed, XfpmManag
               LOGIND_HANDLE_LID_SWITCH, &logind_handle_lid_switch,
               NULL);
 
-        if (!logind_handle_lid_switch)
+        if (logind_handle_lid_switch)
             return;
     }
 
-- 
2.1.0




Reply via email to