Closed emersion closed 3 years ago
Provisional release notes below.
wlroots 0.13.0 includes the following breaking changes.
These changes can affect most compositors.
enum wlr_key_state
has been replaced with enum wl_keyboard_key_state
uint32_t
in wlr_renderer_begin
signature (#2433)wlr_input_device.h
(#2470)wlr_renderer
's EGL context no longer hold true. Compositors not using EGL
directly shouldn't be affected.
wlr_create_renderer_func_t
(#2561)
wlr_backend_autocreate
, wlr_drm_backend_create
, wlr_headless_backend_create
, wlr_wl_backend_create
, wlr_x11_backend_create
no longer take a wlr_renderer_create_func_t
parameterwlr_renderer_create_func_t
type has been removedwl_display
wlr_xdg_surface_for_each_popup
(#2610)
wlr_xdg_surface_for_each_popup
has been removed, use
wlr_xdg_surface_for_each_popup_surface
instead.wlr_layer_surface_v1_for_each_popup
has been renamed to
wlr_layer_surface_v1_for_each_popup_surface
.wlr_layer_surface_v1_state.keyboard_interactivity
has now the type
enum zwlr_layer_surface_v1_keyboard_interactivity
to reflect protocol changes.scale
and transform
output events have been removed, compositors should use the commit
event instead.wlr_output.pending
in an output commit
event handler. Instead, use the current state and wlr_output_event_commit
.GL_REPEAT
. If you want to repeat a texture, manually change wlroots' default via glTexParameteri
.WLR_TEXT_INPUT_v3_FEATURE_CONTENT_TYPE
has been renamed to WLR_TEXT_INPUT_V3_FEATURE_CONTENT_TYPE
.wl_shm_format
(#2744): the renderer functions take DRM_FORMAT_*
values instead of WL_SHM_FORMAT_*
. Make sure you don't have any remaining WL_SHM_FORMAT_*
enum value in your compositor.
wlr_renderer_read_pixels
now takes a DRM format code instead of an enum wl_shm_format
wlr_renderer_get_shm_texture_formats
now returns DRM format codes instead of an enum wl_shm_format
wlr_renderer_read_pixels
now takes a DRM format code instead of an enum wl_shm_format
wlr_output_preferred_read_format
now returns a DRM format code instead of an enum wl_shm_format
These changes are unlikely to affect compositors that don't have a custom backend or renderer.
wlr_renderer_get_dmabuf_render_formats
(#2483)
wlr_egl_get_dmabuf_formats
has been renamed to wlr_egl_get_dmabuf_texture_formats
wlr_renderer_get_formats
has been renamed to wlr_renderer_get_shm_texture_formats
wlr_renderer_get_dmabuf_formats
has been renamed to wlr_renderer_get_dmabuf_texture_formats
wlr_renderer_format_supported
has been removed (instead, use wlr_renderer_get_shm_texture_formats
)wlr_drm_backend_create
takes a wlr_device
instead of a DRM FDwlr_device.signal
has been replaced by wlr_device.events.change
wlr_session.session_signal
has been replaced by wlr_session.events.active
wlr_session_open_file
and wlr_session_close_file
now take a wlr_device
instead of a FDwlr_session_find_gpus
now fills an array of wlr_device
pointers instead of an array of FDswlr_session_find_gpus
now returns a ssize_t
instead of a size_t
EGLint visual_id
parameter of wlr_egl_init
has been removed.wlr_egl_swap_buffers
has been removed.wlr_egl_init
and wlr_egl_finish
have been replaced with wlr_egl_create
and wlr_egl_destroy
.wlr_egl_make_current
no longer takes the arguments EGLSurface surface, int *buffer_age
.wlr_egl
from backends (#2602): wlr_renderer_autocreate
no
longer takes a struct wlr_egl *
as parameter.wlr_renderer_autocreate
no longer takes the arguments EGLenum platform, void *remote_display
.
Instead it takes a struct wlr_backend *
.config_attribs
, wlr_egl.config
and wlr_egl_{create,destroy}_surface
(#2666)wlr_tablet.impl
is now const
wlr_output.transform_matrix
to the GLES2 renderer. Compositors using wlr_output.transform_matrix
only with the GLES2 renderer don't need an update.
Planning for the next release.
https://github.com/swaywm/wlroots/milestone/5