From 4507801b845aa407d4ea525c8f07fd13f0d3c740 Mon Sep 17 00:00:00 2001
From: Bobby Rong <rjl931189261@126.com>
Date: Sun, 24 Nov 2024 23:49:10 +0800
Subject: [PATCH] xfce.xfce4-settings: Fix screen locked but lockscreen
 invisible after suspend

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1077277.

(cherry picked from commit f19e0f76f469784ce8800898327799abd183c3cc)
---
 pkgs/desktops/xfce/core/xfce4-settings/default.nix | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pkgs/desktops/xfce/core/xfce4-settings/default.nix b/pkgs/desktops/xfce/core/xfce4-settings/default.nix
index 05923da38aeb..73f22d35f0fd 100644
--- a/pkgs/desktops/xfce/core/xfce4-settings/default.nix
+++ b/pkgs/desktops/xfce/core/xfce4-settings/default.nix
@@ -9,7 +9,9 @@
 , libxfce4util
 , libxklavier
 , upower
-, withUpower ? true
+# Disabled by default on upstream and actually causes issues:
+# https://gitlab.xfce.org/xfce/xfce4-settings/-/issues/222
+, withUpower ? false
 , xfconf
 , xf86inputlibinput
 , colord