diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2022-10-07 22:07:09 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2022-10-07 22:07:09 +0200 |
commit | 5e83c0117e822536aea4bd5db8f97ab7e9224ec3 (patch) | |
tree | 4922a6128d3a2b129ad08e221b4927b3e60795fd /test/lisp/emacs-lisp/bytecomp-resources/warn-obsolete-variable-same-file.el | |
parent | d6831d1b0a18882d688a842721dd1592884a06e2 (diff) | |
download | emacs-5e83c0117e822536aea4bd5db8f97ab7e9224ec3.tar.gz emacs-5e83c0117e822536aea4bd5db8f97ab7e9224ec3.tar.bz2 emacs-5e83c0117e822536aea4bd5db8f97ab7e9224ec3.zip |
Fix setting the wallpaper with "swaybg" and "wbg"
* lisp/image/wallpaper.el (wallpaper-setter): Add 'init-action'
and 'detach' fields to structure.
(wallpaper--init-action-kill): New helper function.
(wallpaper--default-setters): Use above new fields for "swaybg" and
"wbg", to start/restart the corresponding processes as needed.
(wallpaper-default-set-function): Call 'init-action' function if
there is one. If 'detach', use 'call-process' instead of
'start-process'. (Bug#57781)
* test/lisp/image/wallpaper-tests.el (wallpaper--find-setter)
(wallpaper--find-setter/call-predicate)
(wallpaper--find-setter/set-current-setter)
(wallpaper-set/runs-command, wallpaper-set/runs-command/detach)
(wallpaper-set/calls-init-action)
(wallpaper-set/calls-wallpaper-set-function): New tests.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/warn-obsolete-variable-same-file.el')
0 files changed, 0 insertions, 0 deletions