Age | Commit message (Collapse) | Author |
|
wlr_linux_dmabuf: Fix printf conversion specifiers on armhf
|
|
The printf conversion specifiers in a call to wl_resource_post_error
do not specify the type correctly on armhf:
../types/wlr_linux_dmabuf.c: In function 'params_add':
../types/wlr_linux_dmabuf.c:104:21: error: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}' [-Werror=format=]
"sent modifier %lu for plane %u, expected modifier %lu like other planes",
~~^
%llu
To fix this, we use standard printf conversion specifier macros from
inttypes.h.
|
|
add data to wlr_drag_icon
|
|
|
|
Remove redundant roots_seat_remove_device function
|
|
This function is unimplemented and is redundant because all devices added
with roots_seat_add_device get destruction handlers assigned already.
This fixes issue #998.
|
|
Added data field to wlr_subsurface
|
|
|
|
Fix type in wlr_surface_get_extends
|
|
|
|
Add wlr_surface_get_geometry
|
|
This function defaults and clips the xdg-surface geometry to the
bounding box of the surface + its subsurfaces, as specified by the
protocol spec.
|
|
render: remove wlr_renderer_check_import_dmabuf
|
|
The user-visible issue is that newly-mapped xdg-shell* windows would
sometimes start with their top-left-corner, rather than their center, in
the center of the screen. This is because get_size() would
conservatively fall back on (width, height) == (0, 0) if both
set_window_geometry() had not been called, and it found
view->wlr_surface to be NULL.
But, view->wlr_surface is only set to non-NULL in view_map(). We call
get_size() before this. Fortunately, the wlr_surface in question is
accessible via view->xdg_shell{,_v6}->surface, so always fall back on
that. We can assert its presence instead of further falling back on
(width, height) == (0, 0).
Signed-off-by: Genki Sky <sky@genki.is>
|
|
Signed-off-by: Genki Sky <sky@genki.is>
|
|
- Fix bound checking for offset + stride * height
- Make offset bound checking more consistent
- Reject zero strides
|
|
It's possible to implement it outside the renderer, by creating a
texture and destroying it right away. This reduces the API surface
of the renderer.
|
|
virtual-keyboard: fix wlr_virtual_keyboard_manager_v1_destroy
|
|
Only allow one modifier per DMA-BUF, split attributes struct in render/
|
|
|
|
|
|
Fix double-free in the rotation.c example.
|
|
Thanks @tobiasblass for pointing this out. See #1017.
|
|
The wl_display_destroy function already destroys the backend's renderer.
Freeing it by hand causes a segmentation fault.
|
|
rootston: use wl_display_destroy_clients
|
|
The wl_display_destroy function already destroys the backend's renderer.
Freeing it by hand causes a segmentation fault.
|
|
|
|
Fix wlr_box_contains_point comparison
|
|
Support virtual keyboard protocol
|
|
|
|
document the map/unmap xdg-shell events
|
|
|
|
|
|
|
|
xdg-shell: add wlr_xdg_toplevel_set_tiled
|
|
|
|
backend/drm: better connector cleanup, add more logs
|
|
|
|
surface: remove wl_resource_post_event
|
|
|
|
document key and modifier signals
|
|
|
|
xwm: set the proper event mask in client messages
|
|
Fixes #927
|
|
render: bind wl_drm in renderer
|
|
[RFC] backends: implement custom EGL and renderer initialization
|
|
Compositors now have more control over how the backend creates its
renderer. Currently all backends create an EGL/GLES2 renderer, so
the necessary attributes for creating the context are passed to a
user-provided callback function. It is responsible for initializing
provided wlr_egl and to return a renderer. On fail, return 0.
Fixes #987
|
|
Ignore clicks on un-focuseable things.
|
|
Before this change, a view would lose focus after clicking something that's not keyboard-interactive. This would lead to edge cases with layer-shell windows like input methods, which are pointer-only-interactive, but are not intended to change the state of any focus.
|
|
After clicking on something non-interactive, the current view was getting deactivated, but still received keyboard events. roots_seat_set_focus now changes both together in this case.
|