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
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
e1f56538a8
Merge pull request #999 from dcz-purism/virtual-keyboard
...
Support virtual keyboard protocol
7 years ago
Ryan Dwyer
f8a831859f
Fix wlr_box_contains_point comparison
7 years ago
emersion
3444f43c16
Merge pull request #1012 from acrisci/doc-map-unmap
...
document the map/unmap xdg-shell events
7 years ago
Tony Crisci
044fa52be4
reword new_surface docs
7 years ago
Tony Crisci
c27cd5f065
document the map/unmap xdg-shell events
7 years ago
Dorota Czaplejewicz
5334ee8bfd
virtual-keyboard: add support for the virtual-keyboard-v1 protocol
7 years ago
Drew DeVault
f95bd1facf
Merge pull request #1007 from emersion/xdg-toplevel-tiled
...
xdg-shell: add wlr_xdg_toplevel_set_tiled
7 years ago
emersion
47f097e09b
xdg-shell: add wlr_xdg_toplevel_set_tiled
7 years ago
Drew DeVault
ebc8004c8c
Merge pull request #1006 from emersion/drm-logs
...
backend/drm: better connector cleanup, add more logs
7 years ago
emersion
79683ee497
backend/drm: better connector cleanup, add more logs
7 years ago
Drew DeVault
b597f5e380
Merge pull request #1004 from emersion/surface-buffer-send-release
...
surface: remove wl_resource_post_event
7 years ago
emersion
da504f9253
surface: remove wl_resource_post_event
7 years ago
emersion
4dfcbcf5dd
Merge pull request #1003 from acrisci/document-keyboard-events
...
document key and modifier signals
7 years ago
Tony Crisci
9971d06afb
document key and modifier signals
7 years ago
emersion
0eec0c7303
Merge pull request #1001 from ammen99/xterm-fix
...
xwm: set the proper event mask in client messages
7 years ago
Ilia Bozhinov
5dd1a838f3
xwm: set the proper event mask in client messages
...
Fixes #927
7 years ago
emersion
6eb4b5b54d
Merge pull request #993 from emersion/bind-wl-drm-in-renderer
...
render: bind wl_drm in renderer
7 years ago
Drew DeVault
35b31dcfb7
Merge pull request #1000 from ammen99/custom-renderer-initialization
...
[RFC] backends: implement custom EGL and renderer initialization
7 years ago
Ilia Bozhinov
24cf70ae96
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
7 years ago
Drew DeVault
a0eb37e2ea
Merge pull request #997 from dcz-purism/master
...
Ignore clicks on un-focuseable things.
7 years ago
Dorota Czaplejewicz
a94c56a828
rootston: Keep focus unchanged when non-focusable element clicked
...
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.
7 years ago
Dorota Czaplejewicz
fa13493ad5
rootston: Disable keyboard focus on inactive views
...
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.
7 years ago
emersion
0ab37db543
Merge pull request #994 from agreppin/master
...
fix server error on exit: eglMakeCurrent Invalid display
7 years ago
agr
4e89e0fc6c
fix server exit: eglMakeCurrent Invalid display
7 years ago
emersion
41130fe54b
render: bind wl_drm in renderer
7 years ago
Drew DeVault
341af97125
Merge pull request #978 from emersion/wlr-backend-env
...
backend: add WLR_BACKEND env variable
7 years ago
emersion
327aa7f49d
Merge pull request #990 from emersion/fullscreen-clear-alpha
...
output: correctly clear screen when fullscreened
7 years ago
emersion
e849a68e6e
output: correctly clear screen when fullscreened
7 years ago
emersion
8585533a78
Merge pull request #989 from ascent12/unused_arg
...
Remove unused argument
7 years ago
Scott Anderson
1a3921d4d4
Remove unused argument
7 years ago