Simon Ser
8ecc557ab0
subsurface: use cached surface state
4 years ago
Simon Ser
e0258f4506
surface: introduce cached states
...
Cached states allow a surface commit to be delayed. They are useful for:
- Subsurfaces
- The upcoming transactions protocol [1]
- Explicit synchronization
[1]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/26
4 years ago
Simon Ser
7ac76aba8a
surface: introduce commit sequence numbers
...
Very similar to output commit sequence numbers. Can be useful to
reference a specific commit.
4 years ago
Simon Ser
52e40025c4
output: document hotspot coord space
4 years ago
Simon Ser
cf5b09ede2
Remove unnecessary wayland-server-protocol.h includes
4 years ago
Simon Ser
27fba3df43
render: use DRM formats in wlr_texture_from_pixels
4 years ago
Simon Ser
b54ef3372d
render: use DRM formats in wlr_renderer_read_pixels
4 years ago
Simon Ser
00bf6674b3
output: use DRM format in wlr_output_preferred_read_format
4 years ago
Simon Ser
ddfee63055
render: use DRM formats in wlr_renderer_get_shm_texture_formats
4 years ago
Tadeo Kondrak
78685ec6aa
text_input_v3: correct typo in enum field
4 years ago
Simon Ser
6f873078d4
build: use dictionnary for features instead of configuration_data
...
This allows us to easily iterate on all features and only deal with
bools.
4 years ago
Manuel Stoeckl
a290d7a78d
Make implementation function lists static const
...
This requires a change to the type of `struct wlr_tablet` and
`wlr_tablet_init` signature, both of which are part of the unstable API.
4 years ago
Simon Ser
45f992b27b
region: make wlr_region_create private
...
This function should only be called from the handler for
wl_compositor.create_region requests.
4 years ago
Simon Ser
3d7aa73867
render/dmabuf: make src arg const in wlr_dmabuf_attributes_copy
4 years ago
Brandon Dowdy
8aa38fe73e
render/egl: remove *config_attribs and wlr_egl->config
...
Breaking changes:
Both "EGLint *config_attribs" and "wlr_egl->config" no longer exist.
4 years ago
Brandon Dowdy
705b3da7cb
render/egl: remove wlr_egl_{create,destroy}_surface
...
Breaking changes:
wlr_egl_create_surface and wlr_egl_destroy_surface have been
removed and no longer exist.
4 years ago
Simon Ser
7c995b78b2
Revert "render: add wlr_egl_create_from_drm_fd function"
...
This reverts commit ee31be167b
.
4 years ago
Simon Ser
54e5ef39c0
Revert "render/egl: remove unused gbm_device member"
...
This reverts commit 306cf11d87
.
4 years ago
Simon Zeni
306cf11d87
render/egl: remove unused gbm_device member
4 years ago
Simon Zeni
ee31be167b
render: add wlr_egl_create_from_drm_fd function
4 years ago
BrassyPanache
d6649a8a4b
Expose ICCCM input status
...
In certain situations windows can have their input field set to false
but still expect to receive input focus by passively listening to key
presses via a parent window. The ICCCM specification outlines how focus
should be given to clients.
Further reading: https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.7
Relates to #2604
4 years ago
Simon Ser
f17b0f975d
backend/drm: add wlr_drm_connector_get_id
...
This allows a compositor to get a KMS connector object ID from a
wlr_output. The compositor can then query more information about
the connector via libdrm.
This gives more freedom to compositors and allows them to read
KMS properties that wlroots doesn't know about. For instance,
they could read the EDID or the suggested_{X,Y} properties and
change their output configuration based on that.
4 years ago
Simon Ser
1fb9535e99
output-damage: stop relying on output pending state on commit
...
References: https://github.com/swaywm/wlroots/issues/2098
4 years ago
Simon Zeni
08a4c62aac
render: remove egl include from wlr_renderer
4 years ago
Simon Zeni
e128e6c08d
render: drop egl parameters from wlr_renderer_autocreate
4 years ago
Simon Ser
a53ab146fe
backend: add get_drm_fd to interface
...
This function allows backends to return the DRM FD they are using. This
will allow the allocator and the renderer to use the right device.
4 years ago
Simon Ser
cc56b4f073
output: remove scale/transform events
...
Instead, the commit event should be used.
4 years ago
Simon Ser
f6f46b4ee2
output-damage: stop listening to scale/transform events
...
Only listen to the commit event.
4 years ago
Daniel Kondor
b7dc4f2990
layer-shell: allow new values for keyboard-interactivity
...
Value is now an enum with a new value ("on-demand") that compositors can use to allow "normal" keyboard focus semantics regardless of the layer the client surface is on. An error is sent for invalid keyboard interactivity values. The old behavior is retained for clients using the previous version of the protocol.
Also adjusted the layer-shell example program to use the new keyboard interactivity options.
4 years ago
Simon Ser
3f7e0cf5f0
render/egl: remove surface and buffer age args from make_current
...
These aren't used anymore.
4 years ago
Simon Ser
1d461687d2
render/egl: replace init/finish with create/destroy
...
This ensures wlr_gles2_renderer can properly take ownership of the
wlr_egl.
Closes: https://github.com/swaywm/wlroots/issues/2612
4 years ago
Simon Ser
50b120927d
render/egl: remove wlr_egl_swap_buffers
4 years ago
Simon Ser
76ed2255ef
render/egl: remove support for EGL_NATIVE_VISUAL_ID
...
Nobody uses it anymore.
4 years ago
Isaac Freund
07111828c5
layer shell: rename popup iterator for consistency
...
This iterates over the subsurfaces of popups as well, so rename it to
match wlr_xdg_surface_for_each_popup_surface().
4 years ago
Isaac Freund
f574ca934c
xdg shell: remove wlr_xdg_surface_for_each_popup()
...
This function is inferior to wlr_xdg_surface_for_each_popup_surface()
for rendering as it does not iterate over subsurfaces. Furthermore,
no compositor is known to use this to iterate popups for any purpose
other than rendering. Therefore remove the function, which may of course
be reintroduced at a later date if a use-case is found.
4 years ago
Isaac Freund
d6890cb847
output-management: use same types as wlr_output
...
This is more correct and also makes things much nicer for languages
that don't allow implicit conversions between these types.
4 years ago
Simon Ser
64da8f0c8d
render/egl: document NULL config_attribs passed to wlr_egl_init
4 years ago
Simon Ser
41aa80d4a1
render/egl: use KHR function pointer type
...
KHR is more "core" than EXT.
4 years ago
Simon Ser
34b14d2fee
render/egl: document that config may be zero
4 years ago
Isaac Freund
4ee4a36c0c
layer shell: add wlr_layer_surface_v1_popup_surface_at()
...
This function will allow compositors to implement input handling in a
way consistent with rendering more easily.
Calling wlr_layer_surface_v1_surface_at() and checking if the result is
a wlr_xdg_popup is flawed as there may be subsurfaces in the popup tree.
4 years ago
Isaac Freund
8f63557ed7
xdg shell: add wlr_xdg_surface_popup_surface_at()
...
This function will allow compositors to implement input handling in a
way consistent with rendering more easily.
Calling wlr_xdg_surface_surface_at() and checking if the result is a
wlr_xdg_popup is flawed as there may be subsurfaces in the popup tree.
4 years ago
Isaac Freund
c5c5ab9724
xdg shell: add wlr_xdg_surface_for_each_popup_surface()
...
When rendering, it is necessary to iterate the subsurfaces as well,
so add a function that makes this easy.
4 years ago
Isaac Freund
129e02b57d
xdg shell: make unconstrain_from_box arg const
4 years ago
Simon Zeni
9192c0480a
remove unnecessary egl includes
4 years ago
Simon Zeni
b899a412e3
backend: remove wlr_egl from all backends
4 years ago
Andri Yngvason
e136a4168b
types/seat: Clear focus in wlr_seat_destroy()
...
This fixes use-after-free in surface destroy signal listeners.
4 years ago
Simon Ser
07d75c99db
render: remove EGL config and visual from wlr_renderer_autocreate
...
This isn't used anymore by any backend.
Some examples still provide an EGL config to wlr_egl_init, so we can't
drop it yet there.
4 years ago
Ilia Bozhinov
01dcfb360e
types: add wlr_xdg_foreign_v2
...
Co-authored-by: Jason Francis <cycl0ps@tuta.io>
4 years ago
Ilia Bozhinov
162f160def
types: add wlr_xdg_foreign_v1
...
Co-authored-by: Jason Francis <cycl0ps@tuta.io>
4 years ago
Ilia Bozhinov
37602e153b
types: add wlr_xdg_foreign_registry
4 years ago