From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: master fe7c015b20: Support XFCE in wallpaper.el Date: Mon, 26 Sep 2022 23:01:43 +0200 Message-ID: <877d1p4zpk.fsf@gmx.net> References: <166336105908.23797.12319380359602540227@vcs2.savannah.gnu.org> <20220916204419.B124FC00872@vcs2.savannah.gnu.org> <87edwavjyc.fsf@yahoo.com> <87wna1tr7z.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35899"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Po Lu , emacs-devel@gnu.org, Thierry Volpiatto To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 26 23:04:02 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ocvGj-00099S-V3 for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Sep 2022 23:04:01 +0200 Original-Received: from localhost ([::1]:42430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocvGi-0006RD-8c for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Sep 2022 17:04:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocvEe-0004vk-Ti for emacs-devel@gnu.org; Mon, 26 Sep 2022 17:01:52 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:44905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocvEd-00005v-0T for emacs-devel@gnu.org; Mon, 26 Sep 2022 17:01:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1664226104; bh=m5I5Zw0qLQwDqYsEeZBvpUVURvgUTU3MwP6H7RFHqy4=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=Lfvsk1iM70OyEwyAXHlN9ybGX90dTWMb7Z+cp03+QlqEXml31oBYLhNQ+Je3GDC7B hHYln1U82ituZDfpPoGl4CS7S5mn1xWOpgCb55xuw0AlRhX5BRNj7RX3+Psotzcn2v xWAdbnS4uI+f3RpP63Uyi/LNks3Ryn4CP01pVDEU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.36.38]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MRTNF-1orYEU33kz-00NVfB; Mon, 26 Sep 2022 23:01:43 +0200 In-Reply-To: (Stefan Kangas's message of "Mon, 26 Sep 2022 15:42:51 -0400") X-Provags-ID: V03:K1:0cFq9KuWljKZbkKs8X7WSATUw76pkPMrmjncvj+IbhB907I7uLJ qsMnRWk5Esl0N2dU6Y98q3OJDTf7v+7axFrwXoUisy3gSE2XPveL2DGyGyDSZ/B9HtYp/Ju JMrXKngKEKtsJ4TGm52sbyoaY5pM/uwJPf2x403a7tgKmAYvFTW+zidP01tkxAVSLeu4ruM GBUacgUHRvWorro+eW1HA== X-UI-Out-Filterresults: notjunk:1;V03:K0:kqYlZu4psZY=:HMbvInAxlrtCrkISG2iJFk MyrEGzxqvCBzg+FgHytYfk0Yv9YY+gVBDzPPfaipSA2Nuwgc1iS1m6Sob7CpD5F+npqGOvgjv R2YamjLZVWXmOPHJwJdvrn49g96bMVaKwIs8HXx+uOS/VxOY515J08J8Bb1j1wGMRVJxeIUGG ylCom3+aGuO9sZ6cKqNyq2m4oZZfddjNB0K2mX+oIxIgDhV1ffoG+IWu791fYfidkkoQhjimK lCk+tr/gUwq+7BGtu71b5knMAKffqSV9+bMuTKllu3/AYJsP4geO/yabtMVnKpz6W9t0Tg/8m Te1C5KSJs4njk8uBmYRuXLURjwBDaSWZDT29oUkvZVMZKMPxiiusCvXk9olJSrR+S9fPyMm+J PFen6tuAe8Tq/EyyByXJpTHiP+ZAV2s8Ry+Gqtvys/OHOCwwvsjMnaAM/umWalNJj7tyaWxeP V0AP9WF1S2DapXsj60cTyTY37Gaen4chENZP2RMtYxm/URmzZadDsVtlflnD61TCa1znOdo7F FaYduBwX3f6atUKaBQpb/lLGUpToBMy/R7Ks3bRyctXzOefUEZPtw/CAqW4t89GVfqgr1+Ia0 ZYRL/alJr0Bno9pi2/J9xeQFvxzhlBlVxaeTjZWQSFYBEGKb5MGy8kweU2Idd/LyyEtVI/eI2 N/UsdsKuuUVGafq/LkPJbMEPn1jRkyhOwhogQOvsEi2F5Wdyjp/csXrTgf6SHh7RrpleDmiah B+VMEWU0tlUyUXlgO67Zpjoe00+5zUgIdPwnqiYliww1RGY0v4uhfjRFTGWCRgzSJM46fWdg Received-SPF: pass client-ip=212.227.17.21; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:296308 Archived-At: On Mon, 26 Sep 2022 15:42:51 -0400 Stefan Kangas = wrote: > Po Lu writes: > >> The screen number should be the following part of the `display' frame >> parameter: >> >> 1.1.1.1:0.5 >> ^ screen number is 5 >> >> if there is no period after the separator, then the screen number is 0. >> >> The currently active workspace can be obtained like so: >> >> (x-window-property "_NET_CURRENT_DESKTOP" nil "CARDINAL" 0 nil t) >> >> if it fails by returning NULL, then you should fall back to: >> >> (x-window-property "WIN_WORKSPACE" nil "CARDINAL" 0 nil t) >> >> and failing that, 0. >> >> The monitor name should also be easy to extract with >> display-monitor-attributes-list, but if the source is anything other >> than "XRandr", "XRandr 1.5" or "Gdk", you should fall back to using "0"= . > > Thanks, I've pushed a fix to master based on the above. I very much > appreciated the clear instructions above, which saved me a ton of time. > > I had to jump through extra hoops to get it to work also in the > situation that Thierry described, however. See commit b0289e7f6d and in > particular bb9df76dc9. > > I installed XFCE on my machine to test the change and it works for me. > If someone with XFCE could test that the change works for them, that > would be welcome. It does not work for me. display-monitor-attributes-list identifies my monitor as "HDMI2", which is of course not one of the stipulated sources. After commenting out (if (and monitor (member source '("XRandr" "XRandr 1.5" "Gdk"))) monitor "0") in wallpaper--format-arg and using "HDMI2" for the monitor, then wallpaper-default-set-function produces a command that does change the wallpaper. In case it matters, my xfconf-query version is 4.16.0. Steve Berman