emacs-devel
[Top][All Lists]
Advanced

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

Re: Subwindow xwidget


From: joakim
Subject: Re: Subwindow xwidget
Date: Mon, 29 Apr 2019 23:41:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Evgeny Zajcev <address@hidden> writes:

> In XEmacs there is nice "subwindow" glyph type, which could be used to 
> display contents of foreign application (such as video player).  Internally 
> it is just ordinary
> subwindow of fixed geometry with API to get its XID, which you specify to 
> foreign application to render to.
>
> Is it possible to do the same in GNU Emacs or would it be hard to implement?
>
> Unfortunately xwidget functionality is limited to "webkit" type of widget, 
> and it does not provide API to get XID of the widget's window.
>
> Thanks

I'm not really sure if its possible to do what you ask out of the box, but I can
explain a little bit about the xwidget implementation.

xwidgets are supposed to follow the emacs windowing paradigm so you can
split an emacs window with a xwidget, and then you get for instance two
copies of the same xwidget on screen. This is done by off-screen copying
of window bitmaps from the off screen widget.

The original branch of xwidget also allowed for different types of
widgets apart from the webkit one. One of those widgets was a generic
container widget, such that you could embed emacs inside emacs for
instance. Some screenshots: https://www.emacswiki.org/emacs/EmacsXWidgets

That branch is bitrotted, but resides both on savannah and github
https://github.com/jave/xwidget-emacs

But you only need the xwidget complexity if you actually need the
of-screen copying which you only need if you care about your widget to
follow the emacs paradigm of window splitting and so on.

If you just want your video window to appear at a fixed position inside
emacs, that is doable by other means, and I think there are a couple of
projects that do that.

Regards,
-- 
Joakim Verona
address@hidden



reply via email to

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