Bob Ham
eb8b8acca6
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.
7 years ago
Ryan Dwyer
516c864d46
Fix mistakes in xdg_popup and xdg_popup_v6
7 years ago
emersion
caf72767a1
Merge pull request #1032 from acrisci/drag-icon-data
...
add data to wlr_drag_icon
7 years ago
Tony Crisci
58d549c98a
add data to wlr_drag_icon
7 years ago
emersion
1c5c8652c5
Merge pull request #1030 from Shugyousha/removeSeatRemoveDevice
...
Remove redundant roots_seat_remove_device function
7 years ago
Silvan Jegen
736309c228
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 .
7 years ago
emersion
551700e887
backend/wayland: fix keyboard keys not pressed/released when focus changes
7 years ago
emersion
31c8ca7bec
Merge pull request #1027 from Timidger/subsurface_data
...
Added data field to wlr_subsurface
7 years ago
Timidger
2eb8b240e1
Added data field to wlr_subsurface
7 years ago
emersion
d3670dfeff
Merge pull request #1022 from Ongy/master
...
Fix type in wlr_surface_get_extends
7 years ago
Markus Ongyerth
7b07b3f95d
Fix type in wlr_surface_get_extends
7 years ago
emersion
84c09152af
Merge pull request #1021 from Ongy/xdg_geometry
...
Add wlr_surface_get_geometry
7 years ago
Markus Ongyerth
3994762ae0
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.
7 years ago
emersion
6b7a55aa3d
Merge pull request #1020 from emersion/remove-check-dmabuf
...
render: remove wlr_renderer_check_import_dmabuf
7 years ago
emersion
21928cbe61
Merge branch 'master' into screencontent
7 years ago
Genki Sky
32013abae6
rootston: xdg-shell*: Fix get_size() for newly-mapped views
...
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>
7 years ago
Genki Sky
d1cf9acbd5
cleanup: Use void for zero-parameter functions
...
Signed-off-by: Genki Sky <sky@genki.is>
7 years ago
emersion
f90b024ad0
linux-dmabuf: fix bound checks for stride and height
...
- Fix bound checking for offset + stride * height
- Make offset bound checking more consistent
- Reject zero strides
7 years ago
emersion
135721118a
render: remove wlr_renderer_check_import_dmabuf
...
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.
7 years ago
emersion
41e53d1499
Merge pull request #1019 from emersion/virtual-keyboard-destroy
...
virtual-keyboard: fix wlr_virtual_keyboard_manager_v1_destroy
7 years ago
Drew DeVault
5d8e387021
Merge pull request #1015 from emersion/dmabuf-single-modifier
...
Only allow one modifier per DMA-BUF, split attributes struct in render/
7 years ago
emersion
28020ff577
Only allow one modifier per DMA-BUF, split attributes struct in render/
7 years ago
emersion
f580112dca
virtual-keyboard: fix wlr_virtual_keyboard_manager_v1_destroy
7 years ago
emersion
8c9d0f15ce
Merge pull request #1017 from tobiasblass/examples_rotation_fix_doublefree
...
Fix double-free in the rotation.c example.
7 years ago
emersion
0c1f50168b
examples/output-layout: destroy wl_display
...
Thanks @tobiasblass for pointing this out. See #1017 .
7 years ago
Tobias Blass
a21894a844
Fix double-free in the tablet.c and touch.c examples
...
The wl_display_destroy function already destroys the backend's renderer.
Freeing it by hand causes a segmentation fault.
7 years ago
Drew DeVault
f076cc45ee
Merge pull request #1016 from emersion/wl-display-destroy-clients
...
rootston: use wl_display_destroy_clients
7 years ago
Tobias Blass
75f9feb6de
Fix double-free in the rotation.c example.
...
The wl_display_destroy function already destroys the backend's renderer.
Freeing it by hand causes a segmentation fault.
7 years ago
emersion
f9ad63c5cb
rootston: use wl_display_destroy_clients
7 years ago
emersion
87fe9f3466
Merge pull request #1014 from RyanDwyer/fix-wlr-box-contains-point
...
Fix wlr_box_contains_point comparison
7 years ago
emersion
c844eaa1b3
build: add dependencies for examples/dmabuf-capture
7 years ago
emersion
70d324a0f9
examples/dmabuf-capture: simplify event loop and fix style
7 years ago
emersion
85b6b4b0c8
examples/dmabuf-capture: make building this example optional
7 years ago
emersion
2198fd5eed
examples/dmabuf-capture: fix indentation
7 years ago
emersion
2681352e04
export-dmabuf: permanently fail if backend doesn't implement export_dmabuf
7 years ago
Rostislav Pehlivanov
f204a9127c
Command line parsing
7 years ago
Rostislav Pehlivanov
b9b397ef80
Add a demo client for dmabuf export
7 years ago
emersion
a16ad4327a
Update protocol
7 years ago
emersion
65198b0aab
export-dmabuf: assert number of planes
7 years ago
emersion
2432c41a49
export-dmabuf: correctly send the number of planes per layer
7 years ago
emersion
3f9796112e
export-dmabuf: fix tv_sec_hi
7 years ago
emersion
00e108f2fc
export-dmabuf: correctly finish wlr_linux_dmabuf_attribs
7 years ago
emersion
1377e551ef
Update wlr-export-dmabuf protocol
7 years ago
emersion
7901740f94
rootston: enable export-dmabuf
7 years ago
emersion
e26f4dff98
export-dmabuf: wait for the frame to be ready, send timestamp
7 years ago
emersion
5ba1a9af56
render: add wlr_texture_to_dmabuf
7 years ago
emersion
bd430b8620
backend/drm: support multi-planar DMA-BUFs when exporting
7 years ago
emersion
36bd4795d4
export-dmabuf: add basic and incomplete implementation
7 years ago
emersion
9e26808c28
output, backend/drm: add wlr_output_export_dmabuf
7 years ago
emersion
e1f56538a8
Merge pull request #999 from dcz-purism/virtual-keyboard
...
Support virtual keyboard protocol
7 years ago