From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Daiki Ueno <ueno@gnu.org>, emacs-devel@gnu.org
Subject: Re: porting to Wayland
Date: Sun, 13 Jul 2014 11:03:00 +0200 [thread overview]
Message-ID: <53C24B44.3000304@swipnet.se> (raw)
In-Reply-To: <87fvi6unfi.fsf-ueno@gnu.org>
Hello.
I have updated the YAMAMOTO Mitsuharu patch:
http://lists.gnu.org/archive/html/emacs-devel/2009-04/msg00390.html
It all works except some image glitches.
It does not add another window system, rather expands the xterm.c code.
I was expecting that Gtk3+ and Cairo together would let us re-enable double
buffering in Gtk and thus get that for free. Unfortunately this did not work,
as Gtk needs to do its drawing in the event loop, like the NS port needs to do
as mentioned in #17124.
I will probably check this in if I get round to writing all those ChangeLog
entries and fix the image things. There is actually not much user benefit
from using Cairo, except Mitsuharus printing extension. For Wayland, there is
XWayland. Using Cairo is actually slower than using X, sometimes visible so.
Making Cairo draw the same way we draw in X may be a suboptimal way to use
Cairo.
Jan D.
2014-07-13 02:12, Daiki Ueno skrev:
> Hi,
>
> As a learning project, I'm trying to port Emacs to the Wayland display
> server[1]. Now the very basic redisplay code started working, although
> it's still buggy (it even doesn't start without -Q):
>
> Video: http://du-a.org/~ueno/junk/emacs-wl.webm
> Code: https://github.com/ueno/emacs/tree/wip/wl
>
> Rendering in Wayland is entirely done by the client, and the server
> simply reveals the part of buffer sent from the client. So, the main
> task is to replace all the Xlib-based rendering stuff with the
> buffer-based rendering using cairo.
>
> I originally thought it could be done as an "add-on" to the current X
> toolkit support. As GTK3 already has the Wayland backend, it should be
> able to embed the Emacs surface. However, after looking at the code
> (xterm.c/xfns.c), I realized that large part of it relies on Xlib and
> seems too hard (for me) to experiment, without breaking the existing
> code. So, my initial attempt is to add it as another "window system"
> (like NS or W32).
>
> Currently it's missing:
>
> - proper color handling
> - images
> - some text decoration (underline, overline, overstrike)
> - toolkit stuff (window decoration, menubar, toolbar, scrollbar)
>
> and many more. Perhaps anybody here already considered/tried this?
>
> Regards,
>
> Footnotes:
> [1] http://wayland.freedesktop.org
>
next prev parent reply other threads:[~2014-07-13 9:03 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-13 0:12 porting to Wayland Daiki Ueno
2014-07-13 9:03 ` Jan Djärv [this message]
2014-07-13 9:56 ` Daiki Ueno
2014-07-14 6:21 ` Jan Djärv
2014-11-12 15:50 ` Lars Magne Ingebrigtsen
2014-11-12 15:59 ` Lars Magne Ingebrigtsen
2014-11-12 17:01 ` Jan D.
2014-11-12 17:05 ` Lars Magne Ingebrigtsen
2014-11-12 18:25 ` Achim Gratz
2014-11-12 18:45 ` Jan D.
2014-11-13 1:58 ` Daiki Ueno
2014-11-13 9:08 ` Jan D.
2014-11-23 16:56 ` Jan Djärv
2014-11-24 0:07 ` Lars Magne Ingebrigtsen
2014-11-24 5:56 ` Jan D.
2014-11-25 7:49 ` Daiki Ueno
2014-11-25 8:01 ` Jan D.
2014-11-25 14:30 ` Stefan Monnier
2014-11-25 17:30 ` Jan D.
2014-11-26 2:01 ` Stefan Monnier
2014-11-26 5:53 ` generating ChangeLogs automatically (was: porting to Wayland) Paul Eggert
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53C24B44.3000304@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=ueno@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.