stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[STUMP] [PATCH] Avoid crash when window placement rules specify a non-ex


From: Ben Spencer
Subject: [STUMP] [PATCH] Avoid crash when window placement rules specify a non-existent frame.
Date: Sat, 23 May 2009 19:01:50 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

---
 tile-group.lisp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tile-group.lisp b/tile-group.lisp
index 27ce0c3..d2f9191 100644
--- a/tile-group.lisp
+++ b/tile-group.lisp
@@ -60,7 +60,7 @@
             (pick-preferred-frame window)))
   (when *processing-existing-windows*
     (setf (frame-window (window-frame window)) window))
-  (when raise
+  (when (and frame raise)
     (setf (tile-group-current-frame group) frame
           (frame-window frame) nil))
   (sync-frame-windows group (window-frame window))
-- 
1.6.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]