fix comment alignment
parent
4f95b9e72c
commit
3933378536
|
|
@ -26,8 +26,8 @@ exit 0
|
||||||
**
|
**
|
||||||
** (1) /ch04.html#sect-Protocol-Code-Generation
|
** (1) /ch04.html#sect-Protocol-Code-Generation
|
||||||
** " The interfaces, requests and events are defined in
|
** " The interfaces, requests and events are defined in
|
||||||
** protocol/wayland.xml. This xml is used to generate the function
|
** protocol/wayland.xml. This xml is used to generate the function
|
||||||
** prototypes that can be used by clients and compositors. "
|
** prototypes that can be used by clients and compositors. "
|
||||||
**
|
**
|
||||||
** (1) /ch04.html#sect-Protocol-Basic-Principles
|
** (1) /ch04.html#sect-Protocol-Basic-Principles
|
||||||
** " The Wayland protocol is an asynchronous object oriented protocol.
|
** " The Wayland protocol is an asynchronous object oriented protocol.
|
||||||
|
|
@ -45,7 +45,7 @@ exit 0
|
||||||
**~ From the client's perspective:
|
**~ From the client's perspective:
|
||||||
**~
|
**~
|
||||||
**~ A request `R(...)` on an object interface `O` becomes the
|
**~ A request `R(...)` on an object interface `O` becomes the
|
||||||
**~ function `O_R(O *obj, ...)`.
|
**~ function `O_R(O *obj, ...)`.
|
||||||
**~ ! Sometimes the arguments for `R(...)` include an argument that
|
**~ ! Sometimes the arguments for `R(...)` include an argument that
|
||||||
**~ doesn't appear to have a documented type (at least in (1)).
|
**~ doesn't appear to have a documented type (at least in (1)).
|
||||||
**~ We can also refer to the xml and see such arguments have
|
**~ We can also refer to the xml and see such arguments have
|
||||||
|
|
@ -132,7 +132,7 @@ const struct xdg_wm_base_listener xdg_wm_base_listener = {
|
||||||
|
|
||||||
/* (2) xdg_surface::configure
|
/* (2) xdg_surface::configure
|
||||||
** " marks the end of a configure sequence ...
|
** " marks the end of a configure sequence ...
|
||||||
** Clients should arrange their surface for the new states, and then
|
** Clients should arrange their surface for the new states, and then
|
||||||
** send an ack_configure request with the serial sent in this
|
** send an ack_configure request with the serial sent in this
|
||||||
** configure event at some point before committing the new surface. "
|
** configure event at some point before committing the new surface. "
|
||||||
*/
|
*/
|
||||||
|
|
@ -151,7 +151,7 @@ const struct xdg_surface_listener xdg_surface_listener = {
|
||||||
/* (2) xdg_toplevel::configure
|
/* (2) xdg_toplevel::configure
|
||||||
** " This configure event asks the client to resize its toplevel surface
|
** " This configure event asks the client to resize its toplevel surface
|
||||||
** or to change its state. The configured state should not be applied
|
** or to change its state. The configured state should not be applied
|
||||||
** immediately. See xdg_surface.configure for details. "
|
** immediately. See xdg_surface.configure for details. "
|
||||||
** @see:(xdg_surface::configure)
|
** @see:(xdg_surface::configure)
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
|
|
@ -423,8 +423,8 @@ int main(){
|
||||||
|
|
||||||
/* (1) Appendix A: wl_region::set_opaque_region
|
/* (1) Appendix A: wl_region::set_opaque_region
|
||||||
** " The opaque region is an optimization hint for the compositor
|
** " The opaque region is an optimization hint for the compositor
|
||||||
** that lets it optimize out redrawing of content behind opaque
|
** that lets it optimize out redrawing of content behind opaque
|
||||||
** regions. "
|
** regions. "
|
||||||
*/
|
*/
|
||||||
wl_surface_set_opaque_region(ctx.wl_surface, ctx.wl_region);
|
wl_surface_set_opaque_region(ctx.wl_surface, ctx.wl_region);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue