From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master fe7c015b20: Support XFCE in wallpaper.el Date: Tue, 27 Sep 2022 08:56:15 +0300 Message-ID: <83v8p9jr7k.fsf@gnu.org> References: <166336105908.23797.12319380359602540227@vcs2.savannah.gnu.org> <20220916204419.B124FC00872@vcs2.savannah.gnu.org> <87edwavjyc.fsf@yahoo.com> <87wna1tr7z.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2585"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, emacs-devel@gnu.org, thievol@posteo.net To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 27 07:58:30 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 1od3bx-0000VZ-Ti for ged-emacs-devel@m.gmane-mx.org; Tue, 27 Sep 2022 07:58:30 +0200 Original-Received: from localhost ([::1]:60850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1od3bw-0004IF-LT for ged-emacs-devel@m.gmane-mx.org; Tue, 27 Sep 2022 01:58:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1od3a1-0003Uc-MU for emacs-devel@gnu.org; Tue, 27 Sep 2022 01:56:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40948) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1od3a0-0004rL-Q1; Tue, 27 Sep 2022 01:56:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dPavAmzwduC4w/+YereN0ZP5U6EAi0ysKRcHrjIOfpw=; b=MNDQfDfZD+0+ 1L/MZYRRLMzx6GPqY87FjJyWDezt4QsiwuK6CjmoakMknBVUyY5z5ArhTV+L5Xy+G7fGPEz3yFX6P 6LTiVU/xzuArk4uME0cQSqR5eQNfitFjNI6oHJrGkz0E4cT5NJ0qE6An6NM+DoQe6DkNuuRcvawQc 79Hczip+bkz5Crrkq3XSS5SWIpPdiMxq66Ru3Mv/jcG1A5tqZp2r031Bok/SlBA3yHCH0GpXTl3Wv IkLVDkLgXXuDjxGGtrhYwL28Ah/VEzNhKFmg/fPFuZKeyPg6PGv4ZuIxa+3EFC8sbygOl9oGAEHeT 4Qsse0IEA4wo1afcVWPXiw==; Original-Received: from [87.69.77.57] (port=3602 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1od3Zv-0003fL-7S; Tue, 27 Sep 2022 01:56:28 -0400 In-Reply-To: (message from Stefan Kangas on Mon, 26 Sep 2022 15:42:51 -0400) 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:296316 Archived-At: > From: Stefan Kangas > Date: Mon, 26 Sep 2022 15:42:51 -0400 > Cc: emacs-devel@gnu.org, Thierry Volpiatto > > 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. It would be good to have at least the important properties accepted by x-window-property documented in the doc string.