From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 51674@debbugs.gnu.org
Subject: bug#51674: 29.0.50; [PATCH] Fix hang when displaying xwidget script dialog
Date: Mon, 08 Nov 2021 14:29:51 +0800 [thread overview]
Message-ID: <87r1brp3c0.fsf@yahoo.com> (raw)
In-Reply-To: <87ilx39na0.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 08 Nov 2021 07:25:43 +0100")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> (progn
> (require 'xwidget)
> (setq widget (make-xwidget 'webkit
> "Video"
> 700
> 500
> nil
> (current-buffer)
> (xwidget-webkit-current-session)))
> (insert
> (propertize
> "[video]"
> 'display (list 'xwidget :xwidget widget)))
> (xwidget-put widget 'callback #'always))
> (xwidget-webkit-goto-uri widget "file:///tmp/vid.html")
> will play the .mp4 video... but only on Macos. On this Debian laptop,
> it just shows the controls, and doesn't play the mp4. Is this due to
> platform specific limitations? (It won't play Youtube, either, with the
> normal `xwidget-webkit-browse-url'.)
That's weird, because video works here. Does it work in another
WebKitGTK based browser, like Epiphany, on your Debian system? Thanks.
> But on Macos there's a different twist: It doesn't heed the width/height
> specs, and always maximises itself to fill the frame. Which seems like
> a bug.
Unfortunately I don't know enough about macOS to solve the problem here.
But try removing this snippet of x_draw_xwidget_glyph_string:
/* On X11, this keeps generating expose events. */
#ifndef USE_GTK
/* Resize xwidget webkit if its container window size is changed in
some ways, for example, a buffer became hidden in small split
window, then it can appear front in merged whole window. */
if (EQ (xww->type, Qwebkit)
&& (xww->width != text_area_width || xww->height != text_area_height))
{
Lisp_Object xwl;
XSETXWIDGET (xwl, xww);
Fxwidget_resize (xwl,
make_int (text_area_width),
make_int (text_area_height));
}
#endif
next prev parent reply other threads:[~2021-11-08 6:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87fss7s8gr.fsf.ref@yahoo.com>
2021-11-08 2:10 ` bug#51674: 29.0.50; [PATCH] Fix hang when displaying xwidget script dialog Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-08 5:24 ` Lars Ingebrigtsen
2021-11-08 5:38 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-08 5:40 ` Lars Ingebrigtsen
2021-11-08 5:45 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-08 6:25 ` Lars Ingebrigtsen
2021-11-08 6:29 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-11-08 6:50 ` Lars Ingebrigtsen
2021-11-08 6:56 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-08 7:01 ` Lars Ingebrigtsen
2021-11-09 4:31 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-09 4:45 ` Lars Ingebrigtsen
2021-11-09 4:59 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-09 5:30 ` Lars Ingebrigtsen
2021-11-09 5:34 ` Lars Ingebrigtsen
2021-11-09 5:46 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-09 6:10 ` Lars Ingebrigtsen
2021-11-09 4:45 ` Lars Ingebrigtsen
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=87r1brp3c0.fsf@yahoo.com \
--to=bug-gnu-emacs@gnu.org \
--cc=51674@debbugs.gnu.org \
--cc=larsi@gnus.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).