From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: master fe7c015b20: Support XFCE in wallpaper.el Date: Mon, 26 Sep 2022 15:42:51 -0400 Message-ID: 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; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3575"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, Thierry Volpiatto To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 26 21:44:33 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 1ocu1o-0000iB-1u for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Sep 2022 21:44:32 +0200 Original-Received: from localhost ([::1]:48042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocu1m-00027g-MX for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Sep 2022 15:44:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocu0G-0000o8-Jb for emacs-devel@gnu.org; Mon, 26 Sep 2022 15:42:56 -0400 Original-Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]:42941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocu0E-0004Rb-OS for emacs-devel@gnu.org; Mon, 26 Sep 2022 15:42:56 -0400 Original-Received: by mail-oi1-x22a.google.com with SMTP id d64so9525812oia.9 for ; Mon, 26 Sep 2022 12:42:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date; bh=f6y3Ur/jXwAAb9Xkkv+yOg+oAwoKlrrriiNHjwo/bMk=; b=RGuq+0mVmojXoiiPjm1lO2sKWgXmhlRyfXIpg+TBrrwbrzoQqgUKGejHZmEB3J50xY x8IARbyBvjlkmtoIDMul/OxqKeTQ0PxTDFJzqtzhzLEvdYMskpdilUcOIXFJVmIQ5oNd +9NbNfCuH3ULX7Sc96i8JU5gPgBfbt52H8+iTF/qx0zuWv1X+PR/0opWKU7DWE47BvGh AJ4xJax0y/ZahGMLSL6F9ZBuXV7T4YsEkhNljCItHwI5k5gV1Ajo4Eci4JG28Q+S9Oav 3rQ2DPpEWUweyRhoR30Cb66h8XjmWfIGM2NwjmX5HjLF+OqGm83mgTBIk1L8/HvGFJlq WTKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date; bh=f6y3Ur/jXwAAb9Xkkv+yOg+oAwoKlrrriiNHjwo/bMk=; b=xMBSJKJMHgJ7F7kx1WHy52zs+Q6uIt3II1LSSYclJEHGmWVncdiHT8o2M8AvByUhm4 i9CnxKgrq2rKtk8CX9XAsBzn/YXvOQ8RW4w+6xXjyd4RIhV0e1XkMjdW0azkARtZYD5g LQcCziesqvBW4qzQ9wxw6p6QbPIQcwROu6oEJ2+eNG4UXcqAb1nzoTpqZBni15sqeCNq QQgZHMcIMQBMTG+rTzGMLTvU70u6qXzl0rVmSIdrORKNGM+bG0Vd6coNavnslI6u7N1M Wpe6d03X1YMWX8O6y0wL8kcstczEY+jbjFWisddEG87Ip9+oP2AdwZifEyqXGHt3Mz51 UGtg== X-Gm-Message-State: ACrzQf1IEnvZMVO9WiHF8tLtV0aYZnNzMk4vmoNNzy0lHhzJMUeaxXV7 S0/kFtYYQs2frethjWmPdCK/c9qj/fVLqEVGUtI= X-Google-Smtp-Source: AMsMyM5jv2VRnknx8fu5bGVm5B+6R7cJ+ZDSaLuwxqP7rL5QvkYdv7xB3GXcAAGgOuijHb5xpeQp+XyJ1berjQx5Dso= X-Received: by 2002:a05:6808:1a09:b0:350:1e6a:e469 with SMTP id bk9-20020a0568081a0900b003501e6ae469mr184839oib.92.1664221372710; Mon, 26 Sep 2022 12:42:52 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 26 Sep 2022 15:42:51 -0400 In-Reply-To: <87wna1tr7z.fsf@yahoo.com> X-Hashcash: 1:20:220926:emacs-devel@gnu.org::GLuyhxpQZsV76ecx:2amT Received-SPF: pass client-ip=2607:f8b0:4864:20::22a; envelope-from=stefankangas@gmail.com; helo=mail-oi1-x22a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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:296305 Archived-At: 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.