> Emacs now supports being built with pure GTK. ... the
resulting Emacs binary will work on any underlying window system
supported by GDK, such as Wayland and Broadway.
This is really cool. Wayland support in emacs has been really complicated to build because
" To work with the X window system, Emacs pretends that an X window is, in fact, a terminal. As is its usual practice, Emacs deals with X at the lowest level, processing as much X interaction through Lisp code as possible.
At some point, the X redisplay code was ported to the GTK toolkit, but that port is a sort of false front; windows are created with GTK, but then all events in that window are forwarded directly to the Lisp engine. Even with GTK3, Emacs is still using much of its old code, handling drawing and events at the X level. "[0]
> Emacs now supports being built with pure GTK. ... the resulting Emacs binary will work on any underlying window system supported by GDK, such as Wayland and Broadway.
This is really cool. Wayland support in emacs has been really complicated to build because
" To work with the X window system, Emacs pretends that an X window is, in fact, a terminal. As is its usual practice, Emacs deals with X at the lowest level, processing as much X interaction through Lisp code as possible.
At some point, the X redisplay code was ported to the GTK toolkit, but that port is a sort of false front; windows are created with GTK, but then all events in that window are forwarded directly to the Lisp engine. Even with GTK3, Emacs is still using much of its old code, handling drawing and events at the X level. "[0]
[0] https://lwn.net/Articles/843896/