unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Daiki Ueno <ueno@gnu.org>
To: emacs-devel@gnu.org
Subject: porting to Wayland
Date: Sun, 13 Jul 2014 09:12:17 +0900	[thread overview]
Message-ID: <87fvi6unfi.fsf-ueno@gnu.org> (raw)

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

-- 
Daiki Ueno



             reply	other threads:[~2014-07-13  0:12 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-13  0:12 Daiki Ueno [this message]
2014-07-13  9:03 ` porting to Wayland Jan Djärv
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

  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=87fvi6unfi.fsf-ueno@gnu.org \
    --to=ueno@gnu.org \
    --cc=emacs-devel@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 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).