diff options
Diffstat (limited to 'src/wheelwork.lisp')
-rw-r--r-- | src/wheelwork.lisp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wheelwork.lisp b/src/wheelwork.lisp index cc70053..8efca4e 100644 --- a/src/wheelwork.lisp +++ b/src/wheelwork.lisp @@ -65,9 +65,6 @@ TARGET is FOCUSABLEP" (sdl2:scancode sdl-keysym) (sdl2:mod-keywords (sdl2:mod-value sdl-keysym))))))) - - - (defun contains-point-p (unit px py) (let* ((pt (vec:vec px py 0.0 1.0)) @@ -95,7 +92,8 @@ TARGET is FOCUSABLEP" (when (unit-visiblep thing) (etypecase thing (container - (find-if #'finder (container-units thing) :from-end t)) + (when (contains-point-p thing x y) + (find-if #'finder (container-units thing) :from-end t))) (unit (when (contains-point-p thing x y) (return-from unit-under thing))))))) |