[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[STUMP] Patch for setting of DISPLAY-variable.
From: |
Troels Henriksen |
Subject: |
[STUMP] Patch for setting of DISPLAY-variable. |
Date: |
Mon, 05 Dec 2005 19:00:08 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/22.0.50 (gnu/linux) |
When I hack on Stumpwm, I usually run it from a Lisp that runs inside
Emacs inside an X-seesion. That means that Stumpwm inherits the
environment-variable settings from Emacs, which causes applications
started through Stumpwm to pop up on the same display that I'm running
Emacs in. Since I run Stumpwm on a different display (commonly :1, as
opposed to the :0 that hosts Emacs), this is really annoying. Attached
is a patch to stumpwm.lisp that will set the
DISPLAY-environment-variable properly when Stumpwm starts.
Index: stumpwm.lisp
===================================================================
RCS file: /cvsroot/stumpwm/stumpwm/stumpwm.lisp,v
retrieving revision 1.22
diff -u -r1.22 stumpwm.lisp
--- stumpwm.lisp 1 Dec 2004 01:18:20 -0000 1.22
+++ stumpwm.lisp 5 Dec 2005 17:55:47 -0000
@@ -110,6 +110,11 @@
(focus-frame (first *screen-list*) (screen-current-frame (first
*screen-list*)))
;; Setup the default key bindings. FIXME: should this be in the hook?
(set-default-bindings)
+ ;; Set the DISPLAY-environment-variable properly. This is
+ ;; necessary if Stumpwm is running from a Lisp in another
+ ;; X-display.
+ (setf (port:getenv "display")
+ display-str)
(echo-string (first *screen-list*) "Welcome to The Stump Window
Manager!")
;; Load rc file
(multiple-value-bind (success err rc) (load-rc-file)
--
Troels "Athas" Henriksen
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [STUMP] Patch for setting of DISPLAY-variable.,
Troels Henriksen <=