From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Apr 23 19:10:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2F0C26C for ; Tue, 23 Apr 2013 19:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id EB8F3186E for ; Tue, 23 Apr 2013 19:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3NJA0fn080199 for ; Tue, 23 Apr 2013 19:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3NJA0jr080198; Tue, 23 Apr 2013 19:10:00 GMT (envelope-from gnats) Resent-Date: Tue, 23 Apr 2013 19:10:00 GMT Resent-Message-Id: <201304231910.r3NJA0jr080198@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tijl Coosemans Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 88046FD0 for ; Tue, 23 Apr 2013 19:08:16 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay001.isp.belgacom.be (mailrelay001.isp.belgacom.be [195.238.6.51]) by mx1.freebsd.org (Postfix) with ESMTP id 23F53185A for ; Tue, 23 Apr 2013 19:08:15 +0000 (UTC) Received: from 121.185-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.185.121]) by relay.skynet.be with ESMTP; 23 Apr 2013 21:07:05 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.6/8.14.6) with ESMTP id r3NJ73Dc014084 for ; Tue, 23 Apr 2013 21:07:04 +0200 (CEST) (envelope-from tijl@kalimero.tijl.coosemans.org) Received: (from tijl@localhost) by kalimero.tijl.coosemans.org (8.14.6/8.14.6/Submit) id r3NJ73dT014083; Tue, 23 Apr 2013 21:07:03 +0200 (CEST) (envelope-from tijl) Message-Id: <201304231907.r3NJ73dT014083@kalimero.tijl.coosemans.org> Date: Tue, 23 Apr 2013 21:07:03 +0200 (CEST) From: Tijl Coosemans To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/178090: [patch] x11-wm/xfce4-session: xflock4 patch X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Tijl Coosemans List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Apr 2013 19:10:01 -0000 >Number: 178090 >Category: ports >Synopsis: [patch] x11-wm/xfce4-session: xflock4 patch >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Apr 23 19:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Tijl Coosemans >Release: FreeBSD 10.0-CURRENT i386 >Organization: >Environment: >Description: I have a keyboard shortcut that runs xflock4. It runs slock (x11/slock) and then switches off the display with xset. The problem is that the display is switched off too soon, before I've released the keys. So when I release the keys the xorg server switches the screen back on. The attached patch adds a short delay. >How-To-Repeat: >Fix: --- xfce4-session.patch begins here --- Index: x11-wm/xfce4-session/files/patch-scripts_xflock4 =================================================================== --- x11-wm/xfce4-session/files/patch-scripts_xflock4 (revision 316384) +++ x11-wm/xfce4-session/files/patch-scripts_xflock4 (working copy) @@ -9,3 +9,11 @@ export PATH # Lock by xscreensaver or gnome-screensaver, if a respective daemon is running +@@ -41,6 +41,7 @@ + if command -v -- $1 >/dev/null 2>&1; then + $lock_cmd >/dev/null 2>&1 & + # turn off display backlight: ++ sleep 1 + xset dpms force off + exit + fi --- xfce4-session.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: