emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multimedia dashboard in GNU Emacs


From: Po Lu
Subject: Re: Multimedia dashboard in GNU Emacs
Date: Thu, 30 Dec 2021 09:02:02 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux)

Aiko Kyle <aikokyle@gmail.com> writes:

> I think that the question of how well an xwidget obeys "the emacs
> paradigm" depends on the content it's displaying. If it were a button
> or some other element in a larger button, I agree that the current
> model fits the emacs way well enough. However I think when the xwidget
> is the only element in a buffer and takes up a large portion or even
> the whole window, then I think the correct paradigm would resemble
> something like doc-view, where the two widow's xwidgets can show
> different views if they have some notion of scrolling.

I think Doc View uses per-window overlays to achieve that, which you can
also do with xwidgets.

> This is the current implementation that Po Lu has fixed various
> flickering bugs on master for xwidgets on x.

That was the old implementation as well, but it used GDK windows instead
of X windows, which could be painted over by Emacs drawing commands, and
caused flickering.

That doesn't make sense with a GtkSocket, because it uses XEmbed
under-the-hood, which basically tells some other program where to place
a window.  A GtkSocket does no drawing by itself.

A better solution would be to redirect a window (given an XID) to some
off-screen pixmap, and to display that pixmap in every window instead.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]