head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2026.12.01.19.58.10;	author ktnb;	state Exp;
branches;
next	;
commitid	zbY5tWlcToQDqE5H;


desc
@@


1.1
log
@stumpwm: update to 2026.11

* Supporting reproducible builds
* Fix version in stumpwm.asd
* Reworked IO loop, simplification & removing restarts
* Better default data dir
* Include table of contents in the manual
* Use non-canonical paths when resolving default data dir
* FIX issue #997
* FIX issue #1234
* Fixing the custom type example in the docs
* Clarified nuances of command-mode
* Make find-mode-line-by-window find mode-lines with matching xwin
  ids
* Add _NET_WM_STATE_ABOVE to +NETWM-SUPPORTED+
* Added more mouse interactivity and support for fixed number of
  chars for window titles in the mode line
* add window classes for input, message and mode-line windows
* Update contribution guidelines and add issue references
* Fixed an issue where floating a window sometimes displays the color
  Orange in the parent window for a moment instead of the focus color
* Rewrite  renumber, toggle-always-on-top and  toggle-always-show
* Remove always-show windows from all groups to prevent orphaned
  records
* Revised the poweroff functions
* Fix bar formatter changing the rest modeline colors
* Place focus-window and key-window outside the screen
* Fix update-colors-for-screen
* Redraw frame indicator on exposure
* mode-line: replace click bounds even when the new draw has none
* Support _NET_WM_MOVERESIZE for float windows
* Skip float windows when restoring a tile group
@
text
@$NetBSD$

Fixed NULL environ due to sbcl using a fake quicklisp to build

--- wrappers.lisp.orig	2026-11-28 00:04:49.000000000 +0000
+++ wrappers.lisp
@@@@ -37,12 +37,27 @@@@
           (xlib:display-display *display*)
           (screen-id screen)))
 
+(defun process-environ ()
+  #+netbsd
+  (let* ((handle (sb-alien:alien-funcall
+                  (sb-alien:extern-alien "dlopen" (function sb-sys:system-area-pointer sb-sys:system-area-pointer sb-alien:int))
+                  (sb-sys:int-sap 0) 1))
+         (addr (sb-alien:alien-funcall
+                (sb-alien:extern-alien "dlsym" (function sb-sys:system-area-pointer sb-sys:system-area-pointer sb-alien:c-string))
+                handle "environ")))
+    (if (zerop (sb-sys:sap-int addr))
+        (sb-ext:posix-environ)
+        (sb-int:c-strings->string-list
+          (sb-alien:sap-alien (sb-sys:sap-ref-sap addr 0) (* sb-alien:c-string)))))
+  #-netbsd
+  (sb-ext:posix-environ))
+
 (defun run-prog (prog &rest opts &key args output (wait t) &allow-other-keys)
   "Common interface to shell. Does not return anything useful."
   (remf opts :args)
   (remf opts :output)
   (remf opts :wait)
-  (let ((env (sb-ext:posix-environ)))
+  (let ((env (process-environ)))
     (when (current-screen)
       (setf env (cons (screen-display-string (current-screen) t)
                       (remove-if (lambda (str)
@
