From: Philippe Brochard Date: Wed, 19 Dec 2012 21:14:27 +0000 (+0100) Subject: Prevent current-child to be set to nil X-Git-Url: https://repo.or.cz/w/clfswm.git/commitdiff_plain/d414d0b4a92ed04b4197c552aa3d08df477712dc Prevent current-child to be set to nil --- diff --git a/src/clfswm-internal.lisp b/src/clfswm-internal.lisp index 0531d92..d529b3d 100644 --- a/src/clfswm-internal.lisp +++ b/src/clfswm-internal.lisp @@ -709,7 +709,7 @@ (return-from find-child-in-all-root root)))) (defun find-current-root () - (root-child (find-root (current-child)))) + (root-child (find-root current-child))) (defun exchange-root-geometry (root-1 root-2) (when (and root-1 root-2) @@ -746,9 +746,10 @@ current-child) (defun current-child-setter (value) - (awhen (find-root value) - (setf (root-current-child it) value)) - (setf current-child value)) + (when value + (awhen (find-root value) + (setf (root-current-child it) value)) + (setf current-child value))) (defmacro with-current-child ((new-child) &body body) "Temporarly change the current child" diff --git a/src/version.lisp b/src/version.lisp index 1866ea0..80d8d1d 100644 --- a/src/version.lisp +++ b/src/version.lisp @@ -33,4 +33,4 @@ (in-package :version) -(defparameter *version* #.(concatenate 'string "Version: 1209.2 built " (date-string))) +(defparameter *version* #.(concatenate 'string "Version: 13?? built " (date-string)))