Simon Zeni
96ccc50c57
types/wlr_input_device: move width_mm and height_mm fields to wlr_tablet and wlr_touch
3 years ago
Guido Günther
0a5a65cf48
examples/input-method: Don't crash on NULL surrounding text
...
E.g. With e.g. gnome-terminal we never end up in handle_surrouding
so it will be NULL.
3 years ago
Keith Bowes
35b3d67e5f
Fixed compiling with FFmpeg 5.0
3 years ago
Alexander Orzechowski
c22ea3eb99
scene_graph: Simplify computation for offset of new surfaces.
...
This became possible after the usage of wlr_surface_send_frame_done.
3 years ago
Alexander Orzechowski
1bc6f7f243
scene_graph: remove unused outputs list
3 years ago
Alexander Orzechowski
8656c77248
scene_graph: use wlr_scene_output_send_frame_done
3 years ago
Kirill Primak
617eb4fb93
surface: deprecate wlr_surface.h
3 years ago
Simon Ser
1fbd13ec79
examples: remove unnecessary partial_dependency() call
...
The definition of the "drm" dep already calls it.
3 years ago
Simon Ser
90e9d327dd
examples: remove unnecessary wlroots deps for clients
...
These clients don't need wlroots.
3 years ago
Simon Ser
83bdb3ad07
examples/layer-shell: remove wlroots dependency
...
This is a client example, it shouldn't use a compositor library
like wlroots.
3 years ago
Simon Ser
ad28490cf4
build: move wayland-client dep to backend/wayland/
...
wayland-client isn't really used by wlroots core, so let's move the
dep to where it's needed in the Wayland backend.
3 years ago
Simon Zeni
6d6e70b9e0
examples: init wlr_output with allocator and renderer
3 years ago
fwsmit
dc22a06184
examples/foreign-toplevel: fix toplevel not being freed
3 years ago
Simon Ser
e05c884891
examples/scene-graph: use wlr_scene_output
...
This allows us to get damage tracking for free™.
3 years ago
Devin J. Pohly
e2e68ff680
examples/scene-graph: demonstrate scene_rect node type
...
Add RECT nodes to the scene-graph demo to illustrate how they are used.
Here, we add a solid rectangle behind each surface as a quick-and-dirty
border, handling surface.commit in order to size it appropriately.
3 years ago
Simon Ser
c41bd320be
examples/scene-graph: new example
3 years ago
Simon Ser
ca0b19fc9c
examples/fullscreen-shell: remove unused render_data.view field
3 years ago
Simon Zeni
e192d87731
move wlr_box from /types to /util
3 years ago
Simon Ser
dbb0e2f75b
Remove unused wlr_list.h includes
3 years ago
Simon Ser
8810e95082
Revert "build: workaround for meson disabler object not working with if not"
...
This reverts commit 9796abcced
.
This Meson issue has been fixed upstream for a while. We require
0.56.0 so we should never hit an unpatched Meson.
3 years ago
Brian McKenna
2fd20b17b6
Flush events in virtual pointer example
4 years ago
Simon Zeni
78b94a570c
examples/rotation: remove unused includes
4 years ago
Simon Zeni
217c4f79a0
examples: introduce quads example
...
This examples uses `wlr_render_quad_with_matrix` to render coloured
squares on the screen, and uses the rotation to make them spin on their
middle.
4 years ago
Simon Ser
fbc2182b9f
Stop specifying xkb_rule_names
...
If a NULL xkb_rule_names pointer is passed to
xkb_keymap_new_from_names, libxkbcommon will default to reading
the XKB_* env variables. So there's no need to do it ourselves.
Also s/xkb_map_new_from_names/xkb_keymap_new_from_names/ since the
latter is more consistent with the returned struct name.
[1]: https://xkbcommon.org/doc/current/structxkb__rule__names.html
4 years ago
Simon Ser
83670fce65
examples: remove dependency on GLES2 for compositor examples
...
Most of the examples had a GLES2 dependency, but weren't using it.
Convert multi-pointer to wlr_renderer instead of using directly
glClear.
4 years ago
Simon Ser
fd7e565ce3
examples: use wlr_output_preferred_mode
4 years ago
ayaka
ed1924800d
render: make GLES2 renderer optional
...
Allow selecting whether the GLES2 renderer gets enabled.
Co-authored-by: Simon Ser <contact@emersion.fr>
4 years ago
Simon Ser
3c6826df71
examples/rotation: error out on invalid option
4 years ago
Simon Ser
6230f7be4f
examples/dmabuf-capture: stop using av_init_packet
...
It's deprecated in ffmpeg >= 4.4.
Closes: https://github.com/swaywm/wlroots/issues/2798
4 years ago
Simon Ser
c5202b728a
examples: add libdrm partial dependency for compositors
...
Fixes: 675bc39658
("Fix wl_shm_format passed to wlr_texture_from_pixels")
4 years ago
Simon Ser
675bc39658
Fix wl_shm_format passed to wlr_texture_from_pixels
...
Fixes: 27fba3df43
("render: use DRM formats in wlr_texture_from_pixels")
4 years ago
Simon Ser
4a9e70ccde
examples: remove wlroots dep from client examples
...
There is one exception: layer-shell still uses wlr_log. Would need to
convert to fprintf to drop the wlroots dep there.
Fixes: 34e7f69d69
("examples: remove dependency on wlr_egl from clients")
4 years ago
Simon Ser
b60c5fa450
examples: drop wlr/render/egl.h include from client examples
...
We use egl_common.h instead.
Fixes: 34e7f69d69
("examples: remove dependency on wlr_egl from clients")
4 years ago
Simon Ser
12cc465144
examples: drop wlroots dep from egl_common.c
...
Just use fprintf instead of wlr_log.
4 years ago
Brandon Dowdy
0977633457
examples/egl_common: make attribs const
...
Make (config, context)_attribs const just to be on the safe side.
4 years ago
Brandon Dowdy
c89dba9435
examples: remove "major" and "minor" from egl_common.c
...
Remove "major" and "minor" from egl_common.c as they are not used by the examples that use egl_common.c.
4 years ago
Brandon Dowdy
34e7f69d69
examples: remove dependency on wlr_egl from clients
...
The specified clients in this commit used to rely on wlr_egl and
some of its related functions in order to render surfaces.
This is no longer the case as of this commit.
4 years ago
fwsmit
1b8330d1f8
examples/foreign-toplevel: Add documenation and output selection
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
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
76ed2255ef
render/egl: remove support for EGL_NATIVE_VISUAL_ID
...
Nobody uses it anymore.
4 years ago
Simon Ser
198560fc1f
examples: request an EGL config
...
Client examples using wlr_egl would fail with EGL_BAD_CONFIG because they
need an EGL config. Set the config attribs to a non-NULL value to make
sure wlr_egl creates an EGL config.
Fixes: 037710b1d4
("render/egl: support config-less wlr_egl")
4 years ago
Simon Ser
9714638f3b
examples: remove visual for EGL_PLATFORM_WAYLAND_EXT
...
The Wayland EGL platform doesn't have visuals.
4 years ago
Simon Ser
4b03bdc3ab
Remove wlr_create_renderer_func_t
...
This callback allowed compositors to customize the EGL config used by
the renderer. However with renderer v6 EGL configs aren't used anymore.
Instead, buffers are allocated via GBM and GL FBOs are rendered to. So
customizing the EGL config is a no-op.
4 years ago
Simon Ser
b9460ab724
Stop using wlr_texture_get_size
...
Just use wlr_texture.{width,height} directly.
4 years ago
Simon Ser
858a1940b5
build: move wayland-egl dependency to examples/
...
Now that the Wayland backend has moved to wlr_swapchain, only
client examples use the dependency. Stop linking against wayland-egl
in the wlroots library.
4 years ago
Isaac Freund
e06c9e43af
Remove unneeded includes from wlr_input_device.h
...
This uncovered many places where we were using things without directly
including them.
4 years ago
Isaac Freund
7693f61d81
Replace wlr_key_state with wl_keyboard_key_state
...
There's no reason to have duplicate enums
4 years ago
Daniel Kondor
36395e5b1c
foreign-toplevel-management: report parent toplevel
...
Based on the wlr-protocols PR:
https://github.com/swaywm/wlr-protocols/pull/52
4 years ago
Tudor Brindus
ec3f432bbb
examples: use `perror` instead of `fprintf` GNU %m `printf` extension
4 years ago