]> git.eshelyaron.com Git - emacs.git/commit
Fix setting the wallpaper in XFCE
authorStefan Kangas <stefankangas@gmail.com>
Mon, 26 Sep 2022 12:38:25 +0000 (14:38 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Mon, 26 Sep 2022 15:41:37 +0000 (17:41 +0200)
commitb0289e7f6ddebdd2bdefa63e2b4afcb29733b3b7
treedea172d18b22c9a5cb6124a4e9b024311bb5d329
parent35d5ad713ee05f5cd922f66462df41deed95f7e8
Fix setting the wallpaper in XFCE

* lisp/image/wallpaper.el  (wallpaper-command-args)
(wallpaper-default-set-function): Support new format specifiers
%S for screen, %W for workspace, and %M for monitor.
(wallpaper--default-setters): Use above new specifiers for XFCE.
(wallpaper--format-arg): New defun broken out from...
(wallpaper-default-set-function): ...here.
(wallpaper--get-height-or-width): Support noninteractive use.
* test/lisp/image/wallpaper-tests.el (wallpaper--format-arg/filename)
(wallpaper--format-arg/filename-hex)
(wallpaper--format-arg/width, wallpaper--format-arg/screen)
(wallpaper--format-arg/monitor, wallpaper--format-arg/workspace):
New tests.
lisp/image/wallpaper.el
test/lisp/image/wallpaper-tests.el