From: "Björn Bidar" <bjorn.bidar@thaodan.de>
To: Po Lu <luangruo@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: visible-frame-list (and PGTK)
Date: Sat, 14 Oct 2023 22:22:10 +0300 [thread overview]
Message-ID: <37615.5816296645$1697311397@news.gmane.org> (raw)
In-Reply-To: <87h6mta1ld.fsf@yahoo.com> (Po Lu's message of "Sat, 14 Oct 2023 19:24:30 +0800")
Po Lu <luangruo@yahoo.com> writes:
> Björn Bidar <bjorn.bidar@thaodan.de> writes:
>
>> Does `(visible-frame-list)` take the current virtual desktop into
>> account?
>
> Under X, yes.
there are various packages around that e.g. i3 mode that filter
visible-frame list with i3 ipc to only get the frames from the current
desktop, similar also ace-window uses such functionality by using
visible-frame-list or x-window-parameters directly (comparing
_NET_WM_DESKTOP with _NET_CURRENT_DESKTOP).
The tried to find any reference that Emacs is doing something similar to visible-frame-list
by couldn't.
>> If so does this also work when Emacs is build with PGTK?
>
> This doesn't function under Wayland, for the reasons you mentioned.
>
>> Would it make sense to adapt Wayland protocols that don't exist in GTK
>> in this case? KDE has a protocol[2] for this and Wlroots is
>> considering the same,
>> Compositors such as Swap already having such functionality in their
>> ipc.[3][4]
>
> I'm quite averse to this prospect, inasmuch as it amounts to shouldering
> the heavy burden of maintaining up-to-date copies of each of these
> protocols, one exceptionally pronounced under Wayland because they are
> subject to incompatible changes or deletion without a moment's notice.
>
> Nowhere is this seen to worse advantage than in that GNU/Linux
> distributions seldom provide headers for these extension protocols,
> responsibility for which devolves upon their clients. No doubt with the
> presumption (and upshot) being that these protocols are only employed by
> a select few clients, to wit such toolkits as GTK, Qt and their ilk.
For Qt/KDE the kde protocol extension version matches to the current
version of frameworks, KDE sets the lowest minimum for each version.
The distro's don't really change that.
KDE and wlroots seem to work together on protocols, e.g. by wlroots
basing on protocol on the other.
> Seriously, open in your web browser:
>
> http://wayland.app/protocols/
>
> Observe that among all these protocols, only those designated "core" or
> "stable" accord clients some guarantee of stability. KDE and WLR
> protocols are conspicuously absent from that list, and all bear a
> surprising predilection to abrupt change and obsolescing. Furthermore,
> they only service a subset of Wayland users.
Is it because the KDE protocols don't contain that are stable or core
don't have the KDE name any more? The website seems to filter protocols
that are not standardized in to their sources e.g KDE or WLR.
Doesn't mean that e.g. KDE doesn't implement WLR extensions or vice versa.
As many things in the Linux world the GNOME people use their political
power to block new protocols that don't fit their vision or push their
own.
My point being that Emacs doesn't agree with the Wayland restrictions
set by GNOME if the PGTK when using GDK Wayland should match the
features of the other ports.
If those features are found in protocols defined by KDE and WLR and are
also implemented in various compositors using either of them, then I
think it makes sense to think about adapting these protocols.
The easiest example I can think of is that Emacs uses server side
(window) decorations, luckily in this case the KDE protocol as added to
the wayland protocols as xdg-decoration.
Even thou it's in XDG for a long time it's not implemented by the GNOME
people.
If more protocols which Emacs would like to make use of, even those in
core, unstable or staging, are not implemented in GDK/GTK that could be
an issue.
The days that GTK was mostly vendor neutral are long gone IMHO.
> Ultimately, Wayland users must come to terms with the restrictions
> imposed by their choice of window system; it is not within our power to
> assuage or otherwise mitigate them.
I guess in this case Emacs is under the mercy of GTK to be cooperative.
Maybe they will see the light of day when it comes to use cases that
don't match their point of view of working.
next prev parent reply other threads:[~2023-10-14 19:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87h6mta1ld.fsf.ref@yahoo.com>
[not found] ` <87il79h4ex.fsf@>
2023-10-14 11:24 ` visible-frame-list (and PGTK) Po Lu
2023-10-14 19:22 ` Björn Bidar [this message]
[not found] ` <87bkd12en1.fsf@>
2023-10-15 0:54 ` Po Lu
2023-10-14 10:41 Björn Bidar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='37615.5816296645$1697311397@news.gmane.org' \
--to=bjorn.bidar@thaodan.de \
--cc=emacs-devel@gnu.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).